Files
twx-linux/drivers/block
Omar Sandoval cd3db55c64 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:37:27 +01:00
..
…
…
…
…
2016-04-12 09:08:53 -07:00
…
…
…
…
…
…
…
…
2017-03-12 06:37:27 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…