Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199321
b: refs/heads/master
c: 79494d1
h: refs/heads/master
i:
  199319: 5ecfd7d
v: v3
  • Loading branch information
Sage Weil committed May 29, 2010
1 parent 8585594 commit 6f357f2
Show file tree
Hide file tree
Showing 2 changed files with 7 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: a922d38fd10d55d5033f10df15baf966e8f5b18c
refs/heads/master: 79494d1b9b92259eb40ea6e939ba5aff4b8de5f1
7 changes: 6 additions & 1 deletion trunk/fs/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,13 @@ static void put_osd(struct ceph_osd *osd)
{
dout("put_osd %p %d -> %d\n", osd, atomic_read(&osd->o_ref),
atomic_read(&osd->o_ref) - 1);
if (atomic_dec_and_test(&osd->o_ref))
if (atomic_dec_and_test(&osd->o_ref)) {
struct ceph_auth_client *ac = osd->o_osdc->client->monc.auth;

if (osd->o_authorizer)
ac->ops->destroy_authorizer(ac, osd->o_authorizer);
kfree(osd);
}
}

/*
Expand Down

0 comments on commit 6f357f2

Please sign in to comment.