libceph: use mon_client.c/put_generic_request() more
authorIlya Dryomov <idryomov@redhat.com>
Mon, 22 Dec 2014 16:35:17 +0000 (19:35 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Feb 2015 10:31:37 +0000 (13:31 +0300)
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
net/ceph/mon_client.c

index 02e105c6865febe3e62c77a8d1dda7eb1428c876..2b3cf05e87b0fc44a150f1c314f2db98f1ab7dfc 100644 (file)
@@ -610,7 +610,7 @@ int ceph_monc_do_statfs(struct ceph_mon_client *monc, struct ceph_statfs *buf)
        err = do_generic_request(monc, req);
 
 out:
-       kref_put(&req->kref, release_generic_request);
+       put_generic_request(req);
        return err;
 }
 EXPORT_SYMBOL(ceph_monc_do_statfs);
@@ -699,7 +699,7 @@ int ceph_monc_do_get_version(struct ceph_mon_client *monc, const char *what,
 
        mutex_unlock(&monc->mutex);
 out:
-       kref_put(&req->kref, release_generic_request);
+       put_generic_request(req);
        return err;
 }
 EXPORT_SYMBOL(ceph_monc_do_get_version);