Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189194
b: refs/heads/master
c: 8b218b8
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Mar 21, 2010
1 parent 48d7694 commit 910a4f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 052bb34af3bf8ae2001b9f03d884ba0def3e427c
refs/heads/master: 8b218b8a4a65bf4e304ae8690cadb9100ef029c0
16 changes: 16 additions & 0 deletions trunk/fs/ceph/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,22 @@ void ceph_destroy_inode(struct inode *inode)

ceph_queue_caps_release(inode);

/*
* we may still have a snap_realm reference if there are stray
* caps in i_cap_exporting_issued or i_snap_caps.
*/
if (ci->i_snap_realm) {
struct ceph_mds_client *mdsc =
&ceph_client(ci->vfs_inode.i_sb)->mdsc;
struct ceph_snap_realm *realm = ci->i_snap_realm;

dout(" dropping residual ref to snap realm %p\n", realm);
spin_lock(&realm->inodes_with_caps_lock);
list_del_init(&ci->i_snap_realm_item);
spin_unlock(&realm->inodes_with_caps_lock);
ceph_put_snap_realm(mdsc, realm);
}

kfree(ci->i_symlink);
while ((n = rb_first(&ci->i_fragtree)) != NULL) {
frag = rb_entry(n, struct ceph_inode_frag, node);
Expand Down

0 comments on commit 910a4f4

Please sign in to comment.