loop: don't hang on lo_ctl_mutex in ioctls
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 1 replyIn review
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] loop: don't hang on lo_ctl_mutex in ioctls
From: Omar Sandoval <[email protected]>
Hi, Jens,
We hit an issue where a loop device on NFS (yes, I know) got stuck and a bunch of losetup processes got stuck in uninterruptible sleep waiting for lo_ctl_mutex as a result. Calling into the filesystem while holding lo_ctl_mutex isn't necessary, and there's no reason to be uninterruptible here. These two patches fix this issue, based on your for-next branch.
Changed from v1: use mutex_lock_killable() instead of mutex_lock_interruptible().
Thanks!
Omar Sandoval (2):
loop: don't call into filesystem while holding lo_ctl_mutex
loop: use killable lock in ioctls
drivers/block/loop.c | 65 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 23 deletions(-)
Signature · 1 line
2.16.2