Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359557
b: refs/heads/master
c: 8a92a11
h: refs/heads/master
i:
  359555: 626adb4
v: v3
  • Loading branch information
Yan, Zheng authored and Alex Elder committed Jan 17, 2013
1 parent 35b20b5 commit e18c960
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: a41bad1a9b9f9982eb9b451165724c5f81096683
refs/heads/master: 8a92a119b292012a9bd920b908c3e9f1c512291d
10 changes: 9 additions & 1 deletion trunk/fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,16 @@ int ceph_add_cap(struct inode *inode,

if (flags & CEPH_CAP_FLAG_AUTH)
ci->i_auth_cap = cap;
else if (ci->i_auth_cap == cap)
else if (ci->i_auth_cap == cap) {
ci->i_auth_cap = NULL;
spin_lock(&mdsc->cap_dirty_lock);
if (!list_empty(&ci->i_dirty_item)) {
dout(" moving %p to cap_dirty_migrating\n", inode);
list_move(&ci->i_dirty_item,
&mdsc->cap_dirty_migrating);
}
spin_unlock(&mdsc->cap_dirty_lock);
}

dout("add_cap inode %p (%llx.%llx) cap %p %s now %s seq %d mds%d\n",
inode, ceph_vinop(inode), cap, ceph_cap_string(issued),
Expand Down

0 comments on commit e18c960

Please sign in to comment.