1. 29 Mar, 2018 29 commits
  2. 28 Mar, 2018 1 commit
  3. 27 Mar, 2018 2 commits
    • Omar Sandoval's avatar
      loop: use killable lock in ioctls · 3148ffbd
      Omar Sandoval authored
      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: default avatarOmar Sandoval <osandov@fb.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      3148ffbd
    • Omar Sandoval's avatar
      loop: don't call into filesystem while holding lo_ctl_mutex · 2d1d4c1e
      Omar Sandoval authored
      We hit an issue where a loop device on NFS was stuck in
      loop_get_status() doing vfs_getattr() after the NFS server died, which
      caused a pile-up of uninterruptible processes waiting on lo_ctl_mutex.
      There's no reason to hold this lock while we wait on the filesystem;
      let's drop it so that other processes can do their thing. We need to
      grab a reference on lo_backing_file while we use it, and we can get rid
      of the check on lo_device, which has been unnecessary since commit
      a34c0ae9 ("[PATCH] loop: remove the bio remapping capability") in
      the linux-history tree.
      Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      2d1d4c1e
  4. 26 Mar, 2018 8 commits