Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333133
b: refs/heads/master
c: 830ffb5
h: refs/heads/master
i:
  333131: 7cc849d
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 28, 2012
1 parent 66e0cea commit 2269aa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 1dfed2737d8cfe2f2378fddfb3bed126ff5474e7
refs/heads/master: 830ffb565760234eb984e4343ad82575e96728de
9 changes: 6 additions & 3 deletions trunk/fs/nfs/pnfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,10 @@ pnfs_update_layout(struct inode *ino,

spin_lock(&ino->i_lock);
lo = pnfs_find_alloc_layout(ino, ctx, gfp_flags);
if (lo == NULL)
goto out_unlock;
if (lo == NULL) {
spin_unlock(&ino->i_lock);
goto out;
}

/* Do we even need to bother with this? */
if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) {
Expand Down Expand Up @@ -1122,6 +1124,7 @@ pnfs_update_layout(struct inode *ino,
spin_unlock(&clp->cl_lock);
}
atomic_dec(&lo->plh_outstanding);
out_put_layout_hdr:
pnfs_put_layout_hdr(lo);
out:
dprintk("%s: inode %s/%llu pNFS layout segment %s for "
Expand All @@ -1135,7 +1138,7 @@ pnfs_update_layout(struct inode *ino,
return lseg;
out_unlock:
spin_unlock(&ino->i_lock);
goto out;
goto out_put_layout_hdr;
}
EXPORT_SYMBOL_GPL(pnfs_update_layout);

Expand Down

0 comments on commit 2269aa9

Please sign in to comment.