Loading fs/ceph/osd_client.c +6 −1 Original line number Diff line number Diff line Loading @@ -361,9 +361,14 @@ 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); } } /* * remove an osd from our map Loading Loading
fs/ceph/osd_client.c +6 −1 Original line number Diff line number Diff line Loading @@ -361,9 +361,14 @@ 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); } } /* * remove an osd from our map Loading