On Thu, Mar 2, 2017 at 2:42 AM, Omar Sandoval <osandov@xxxxxxxxxxx> wrote: > From: Omar Sandoval <osandov@xxxxxx> > > 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: ecdd09597a57 ("block/loop: fix race between I/O and set_status") > Reported-by: Tejun Heo <tj@xxxxxxxxxx> > Cc: Ming Lei <tom.leiming@xxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Omar Sandoval <osandov@xxxxxx> Reviewed-by: Ming Lei <tom.leiming@xxxxxxxxx> Thanks, Ming