loop: use killable lock in ioctls
authorOmar Sandoval <osandov@fb.com>
Tue, 27 Mar 2018 04:39:12 +0000 (21:39 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Mar 2018 20:21:12 +0000 (14:21 -0600)
commit3148ffbdb9162baa28545809d675d3bf9339d6a1
tree495edae516c7b4d02237bdd041b88fc059a3fc0d
parent2d1d4c1e591fd40bd7dafd868a249d7d00e215d5
loop: use killable lock in ioctls

Even after the previous patch to drop lo_ctl_mutex while calling
vfs_getattr(), there are other cases where we can end up sleeping for a
long time while holding lo_ctl_mutex. Let's avoid the uninterruptible
sleep from the ioctls.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c