linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] loop: don't hang on lo_ctl_mutex in ioctls
@ 2018-03-27  4:39 Omar Sandoval
  2018-03-27  4:39 ` [PATCH v2 1/2] loop: don't call into filesystem while holding lo_ctl_mutex Omar Sandoval
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Omar Sandoval @ 2018-03-27  4:39 UTC (permalink / raw)
  To: linux-block; +Cc: Jens Axboe, kernel-team, linux-fsdevel

From: Omar Sandoval <osandov@fb.com>

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(-)

-- 
2.16.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-27 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-27  4:39 [PATCH 0/2] loop: don't hang on lo_ctl_mutex in ioctls Omar Sandoval
2018-03-27  4:39 ` [PATCH v2 1/2] loop: don't call into filesystem while holding lo_ctl_mutex Omar Sandoval
2018-03-27  4:39 ` [PATCH v2 2/2] loop: use killable lock in ioctls Omar Sandoval
2018-03-27 20:21 ` [PATCH 0/2] loop: don't hang on lo_ctl_mutex " Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).