Files
linux/drivers/block
Omar Sandoval 8ca25e39ec loop: fix LO_FLAGS_PARTSCAN hang
commit e02898b423 upstream.

loop_reread_partitions() needs to do I/O, but we just froze the queue,
so we end up waiting forever. This can easily be reproduced with losetup
-P. Fix it by moving the reread to after we unfreeze the queue.

Fixes: ecdd09597a ("block/loop: fix race between I/O and set_status")
Reported-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:41:45 +01:00
..
2016-09-15 08:42:03 -06:00
2016-06-27 12:26:08 -07:00
2017-01-19 20:17:58 +01:00
2016-06-27 12:26:08 -07:00
2011-08-08 11:40:15 +02:00
2016-03-14 09:06:01 -06:00
2017-03-12 06:41:45 +01:00
2015-09-23 11:01:16 -06:00
2016-03-15 15:59:47 -07:00
2016-11-06 14:14:59 -07:00
2016-08-07 14:41:02 -06:00
2016-06-27 12:26:08 -07:00
2016-06-27 12:26:08 -07:00
2016-06-27 12:26:08 -07:00
2013-11-08 09:10:30 -07:00
2016-06-27 12:26:08 -07:00
2009-03-26 21:15:27 +01:00
2016-08-07 14:41:02 -06:00
2016-09-15 08:42:03 -06:00