David Sterba
0e94c4f45d
btrfs: scrub: move scrub_setup_ctx allocation out of device_list_mutex
...
The scrub context is allocated with GFP_KERNEL and called from
btrfs_scrub_dev under the fs_info::device_list_mutex. This is not safe
regarding reclaim that could try to flush filesystem data in order to
get the memory. And the device_list_mutex is held during superblock
commit, so this would cause a lockup.
Move the alocation and initialization before any changes that require
the mutex.
Signed-off-by: David Sterba <dsterba@suse.com >
2018-12-17 14:51:48 +01:00
..
2018-12-17 14:51:44 +01:00
2018-08-06 13:12:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:30 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:43 +01:00
2018-12-17 14:51:45 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:45 +01:00
2018-05-29 18:13:00 +02:00
2018-12-17 14:51:37 +01:00
2018-12-17 14:51:47 +01:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:38 +02:00
2018-10-15 17:23:33 +02:00
2018-12-17 14:51:46 +01:00
2018-12-17 14:51:46 +01:00
2018-12-17 14:51:45 +01:00
2018-12-17 14:51:45 +01:00
2018-10-15 17:23:25 +02:00
2018-12-17 14:51:46 +01:00
2018-12-17 14:51:43 +01:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:45 +01:00
2018-12-17 14:51:44 +01:00
2018-10-15 17:23:33 +02:00
2018-12-17 14:51:43 +01:00
2018-12-17 14:51:47 +01:00
2018-12-17 14:51:40 +01:00
2018-12-17 14:51:45 +01:00
2018-11-06 16:42:32 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:37 +01:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:47 +01:00
2018-12-17 14:51:37 +01:00
2018-04-12 16:29:55 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:43 +02:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:25 +01:00
2018-12-17 14:51:43 +01:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:41 +02:00
2018-04-20 19:18:16 +02:00
2018-05-17 14:18:25 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:39 +01:00
2018-12-17 14:51:43 +01:00
2018-08-06 13:12:45 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:45 +01:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:39 +01:00
2018-08-06 13:13:00 +02:00
2018-12-17 14:51:48 +01:00
2018-12-17 14:51:45 +01:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-12-17 14:51:37 +01:00
2018-12-17 14:51:37 +01:00
2018-12-17 14:51:43 +01:00
2018-12-17 14:51:47 +01:00
2018-12-17 14:51:43 +01:00
2018-12-04 15:05:30 +01:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-12-17 14:51:43 +01:00
2018-12-17 14:51:31 +01:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:53 +02:00
2018-12-17 14:51:45 +01:00
2018-12-17 14:51:40 +01:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00