Chandan Rajendra
1ffa40385a
btrfs: 'subvolume stress' tasks need to exit gracefully
...
The following scenario can occur when running btrfs/066,
Task A Task B Task C
run_test()
- Execute _btrfs_stress_subvolume()
in a background shell.
_btrfs_stress_subvolme()
...
- fork & exec "mount"
Mount subvolume on directory in $TEST_DIR
- Wait for fsstress to finish do_mount()
- kill shell process executing - btrfs_mount()
_btrfs_stress_subvolume()
i.e. Task B.
- Init process becomes the parent
of "subvolume mount" task
i.e. Task C.
- In case subvolume is mounted
(which is not the case),
unmount it.
- Complete mounting subvolume
Hence on the completion of one iteration of run_test(), the subvolume
created inside the filesystem on $SCRATCH_DEV continues to be mounted on
$TEST_DIR/$seq.mnt. Subsequent invocations of run_test() (called for
remaining Btrfs profile configs) fail during _scratch_pool_mkfs.
Instead of killing the 'subvolume stress' task this commit makes
_btrfs_stress_subvolume() to break out of the loop when a file exists
on the filesystem. The commit also makes relevant changes to other
users of _btrfs_stress_subvolume() i.e. btrfs/060, btrfs/065,
btrfs/067 & btrfs/068.
Suggested-by: Eryu Guan <eguan@redhat.com >
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com >
Reviewed-by: Eryu Guan <eguan@redhat.com >
Signed-off-by: Dave Chinner <david@fromorbit.com >
2016-03-23 17:39:11 +11:00
..
2016-02-19 10:44:53 +11:00
2013-08-13 16:16:27 -05:00
2016-02-19 10:49:17 +11:00
2013-08-13 16:16:27 -05:00
2016-02-19 10:49:17 +11:00
2013-08-13 16:16:27 -05:00
2016-02-19 10:49:17 +11:00
2013-08-13 16:16:27 -05:00
2016-02-19 10:44:53 +11:00
2013-08-13 16:16:27 -05:00
2013-08-28 08:33:21 -05:00
2013-08-28 08:41:33 -05:00
2016-02-19 10:49:17 +11:00
2013-08-13 17:17:03 -05:00
2014-08-13 11:08:41 +10:00
2013-08-14 14:54:34 -05:00
2014-01-24 12:06:14 +11:00
2013-08-14 15:42:59 -05:00
2014-12-12 11:26:15 +11:00
2013-08-27 09:07:11 -05:00
2016-02-22 08:37:15 +11:00
2013-08-28 09:05:25 -05:00
2015-11-02 11:00:48 +11:00
2013-10-12 19:30:19 -05:00
2014-12-12 11:26:15 +11:00
2013-10-16 15:14:35 -05:00
2014-01-24 12:06:14 +11:00
2013-10-16 15:21:35 -05:00
2014-12-12 11:26:15 +11:00
2013-10-18 17:26:18 -05:00
2014-08-13 11:08:41 +10:00
2013-10-22 15:54:17 -05:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2014-12-12 11:26:15 +11:00
2013-10-22 16:07:35 -05:00
2014-08-13 11:08:41 +10:00
2013-10-22 16:28:19 -05:00
2015-05-04 22:56:13 +10:00
2013-10-23 18:57:48 -05:00
2013-11-12 08:05:19 -06:00
2013-11-12 08:05:19 -06:00
2015-08-04 14:10:48 +10:00
2013-12-03 10:29:29 +11:00
2013-12-03 10:29:31 +11:00
2013-12-03 10:29:31 +11:00
2014-08-13 11:01:04 +10:00
2013-12-03 10:29:34 +11:00
2016-02-19 10:49:17 +11:00
2014-02-03 10:06:14 +11:00
2016-02-19 10:49:17 +11:00
2015-12-21 17:03:17 +11:00
2016-02-19 10:49:17 +11:00
2016-01-11 15:05:20 +11:00
2016-02-19 10:49:17 +11:00
2014-01-24 12:04:18 +11:00
2016-02-19 10:49:17 +11:00
2014-01-24 12:06:31 +11:00
2014-02-03 09:50:41 +11:00
2014-02-03 09:50:41 +11:00
2014-02-03 10:05:34 +11:00
2014-02-03 10:05:34 +11:00
2016-02-19 10:49:17 +11:00
2014-02-18 21:18:21 +11:00
2015-10-14 14:19:34 +11:00
2015-10-14 14:19:34 +11:00
2014-02-18 17:50:23 +11:00
2014-02-18 17:50:23 +11:00
2016-02-19 10:49:17 +11:00
2014-02-18 18:04:00 +11:00
2016-02-19 10:49:17 +11:00
2014-02-18 21:18:20 +11:00
2016-02-19 10:49:17 +11:00
2014-02-18 21:18:21 +11:00
2016-02-19 10:49:17 +11:00
2014-02-18 21:18:21 +11:00
2016-02-19 10:49:17 +11:00
2014-03-13 15:18:18 +11:00
2014-03-13 15:20:09 +11:00
2014-03-13 15:20:09 +11:00
2016-02-19 10:49:17 +11:00
2014-04-04 17:16:23 +11:00
2016-02-19 10:49:17 +11:00
2014-04-04 17:16:41 +11:00
2016-02-19 10:49:17 +11:00
2014-04-04 17:17:01 +11:00
2016-02-19 10:49:17 +11:00
2014-04-04 17:20:52 +11:00
2016-02-19 10:49:17 +11:00
2014-04-22 10:45:53 +10:00
2016-03-23 14:35:25 +11:00
2014-04-22 10:46:04 +10:00
2016-02-19 10:49:17 +11:00
2014-05-13 15:29:37 +10:00
2016-02-19 10:49:17 +11:00
2014-05-15 11:37:54 +10:00
2016-02-19 10:49:17 +11:00
2014-05-27 12:07:03 +10:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2014-05-27 12:07:39 +10:00
2016-02-19 10:49:17 +11:00
2014-05-27 12:07:42 +10:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2014-08-13 10:59:59 +10:00
2016-02-19 10:49:17 +11:00
2014-08-13 11:20:37 +10:00
2016-03-23 17:39:11 +11:00
2016-03-23 17:39:11 +11:00
2016-03-23 17:39:11 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2014-10-14 22:59:37 +11:00
2016-03-23 17:39:11 +11:00
2014-10-14 22:59:38 +11:00
2016-03-23 17:39:11 +11:00
2014-10-14 22:59:38 +11:00
2016-03-23 17:39:11 +11:00
2014-10-14 22:59:38 +11:00
2016-03-23 17:39:11 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2014-10-14 22:59:38 +11:00
2016-02-19 10:49:17 +11:00
2014-10-14 22:59:38 +11:00
2016-02-19 10:49:17 +11:00
2014-10-14 22:59:39 +11:00
2016-02-19 10:49:17 +11:00
2014-11-10 13:03:43 +11:00
2016-02-19 10:49:17 +11:00
2014-11-10 13:04:00 +11:00
2016-02-19 10:49:17 +11:00
2014-12-16 10:50:56 +11:00
2016-02-19 10:49:17 +11:00
2014-12-16 10:53:42 +11:00
2015-04-01 11:38:40 +11:00
2015-02-12 14:14:00 +11:00
2016-02-19 10:49:17 +11:00
2015-04-01 11:31:24 +11:00
2016-02-19 10:49:17 +11:00
2015-04-01 11:32:01 +11:00
2016-02-19 10:49:17 +11:00
2015-04-01 11:35:44 +11:00
2016-02-19 10:49:17 +11:00
2015-04-01 11:39:24 +11:00
2016-02-19 10:49:17 +11:00
2015-05-04 22:55:19 +10:00
2016-02-19 10:49:17 +11:00
2015-05-04 22:55:21 +10:00
2016-02-19 10:49:17 +11:00
2015-08-04 14:10:48 +10:00
2015-05-04 22:56:11 +10:00
2015-05-04 22:56:11 +10:00
2016-02-19 10:49:17 +11:00
2015-05-04 22:56:13 +10:00
2016-02-19 10:49:17 +11:00
2015-05-04 22:56:13 +10:00
2016-02-19 10:49:17 +11:00
2015-05-14 20:27:53 +10:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2015-09-21 13:06:18 +10:00
2016-02-19 10:49:17 +11:00
2015-09-23 12:52:34 +10:00
2016-02-19 10:49:17 +11:00
2015-09-23 12:52:34 +10:00
2016-02-19 10:49:17 +11:00
2015-09-21 13:06:18 +10:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:46 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:06:50 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:07:42 +11:00
2016-02-19 10:49:17 +11:00
2015-12-21 18:01:47 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:19:33 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:19:34 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:19:34 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:19:34 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:19:34 +11:00
2016-02-19 10:49:17 +11:00
2015-10-14 14:19:34 +11:00
2016-02-19 10:49:17 +11:00
2015-11-02 11:00:22 +11:00
2016-02-19 10:48:38 +11:00
2015-11-17 08:42:29 +11:00
2015-11-17 08:43:27 +11:00
2015-11-17 08:43:27 +11:00
2016-02-19 10:49:17 +11:00
2016-01-11 15:12:20 +11:00
2016-02-19 10:49:17 +11:00
2016-02-08 09:27:15 +11:00
2016-03-23 14:34:47 +11:00
2016-02-19 10:50:32 +11:00
2016-02-19 10:50:32 +11:00
2013-04-12 13:17:46 -05:00