Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374839
b: refs/heads/master
c: 5c50c9b
h: refs/heads/master
i:
  374837: d41ccaf
  374835: 029dff8
  374831: 8f999d9
v: v3
  • Loading branch information
David Sterba authored and Josef Bacik committed May 6, 2013
1 parent aecff9f commit 50e9c89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94ef7280e8b3a5b13ba3cc515e5c198c1181176e
refs/heads/master: 5c50c9b89f1179237e0c0afb399432924058e756
8 changes: 6 additions & 2 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,9 @@ static noinline int btrfs_mksubvol(struct path *parent,
struct dentry *dentry;
int error;

mutex_lock_nested(&dir->i_mutex, I_MUTEX_PARENT);
error = mutex_lock_killable_nested(&dir->i_mutex, I_MUTEX_PARENT);
if (error == -EINTR)
return error;

dentry = lookup_one_len(name, parent->dentry, namelen);
error = PTR_ERR(dentry);
Expand Down Expand Up @@ -2086,7 +2088,9 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
if (err)
goto out;

mutex_lock_nested(&dir->i_mutex, I_MUTEX_PARENT);
err = mutex_lock_killable_nested(&dir->i_mutex, I_MUTEX_PARENT);
if (err == -EINTR)
goto out;
dentry = lookup_one_len(vol_args->name, parent, namelen);
if (IS_ERR(dentry)) {
err = PTR_ERR(dentry);
Expand Down

0 comments on commit 50e9c89

Please sign in to comment.