Skip to content

Commit 45ee2c1

Browse files
committed
libceph: remove now unused finish_request() wrapper
Kill the wrapper and rename __finish_request() to finish_request(). Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent c297eb4 commit 45ee2c1

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

‎net/ceph/osd_client.c‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ static void submit_request(struct ceph_osd_request *req, bool wrlocked)
17251725
__submit_request(req, wrlocked);
17261726
}
17271727

1728-
static void __finish_request(struct ceph_osd_request *req)
1728+
static void finish_request(struct ceph_osd_request *req)
17291729
{
17301730
struct ceph_osd_client *osdc = req->r_osdc;
17311731
struct ceph_osd *osd = req->r_osd;
@@ -1747,12 +1747,6 @@ static void __finish_request(struct ceph_osd_request *req)
17471747
ceph_msg_revoke_incoming(req->r_reply);
17481748
}
17491749

1750-
static void finish_request(struct ceph_osd_request *req)
1751-
{
1752-
__finish_request(req);
1753-
ceph_osdc_put_request(req);
1754-
}
1755-
17561750
static void __complete_request(struct ceph_osd_request *req)
17571751
{
17581752
if (req->r_callback)
@@ -1770,7 +1764,7 @@ static void complete_request(struct ceph_osd_request *req, int err)
17701764
dout("%s req %p tid %llu err %d\n", __func__, req, req->r_tid, err);
17711765

17721766
req->r_result = err;
1773-
__finish_request(req);
1767+
finish_request(req);
17741768
__complete_request(req);
17751769
complete_all(&req->r_done_completion);
17761770
ceph_osdc_put_request(req);
@@ -1797,7 +1791,7 @@ static void cancel_request(struct ceph_osd_request *req)
17971791
dout("%s req %p tid %llu\n", __func__, req, req->r_tid);
17981792

17991793
cancel_map_check(req);
1800-
__finish_request(req);
1794+
finish_request(req);
18011795
complete_all(&req->r_done_completion);
18021796
ceph_osdc_put_request(req);
18031797
}
@@ -2917,7 +2911,7 @@ static void handle_reply(struct ceph_osd *osd, struct ceph_msg *msg)
29172911
}
29182912

29192913
if (done_request(req, &m)) {
2920-
__finish_request(req);
2914+
finish_request(req);
29212915
if (req->r_linger) {
29222916
WARN_ON(req->r_unsafe_callback);
29232917
dout("req %p tid %llu cb (locked)\n", req, req->r_tid);

0 commit comments

Comments
 (0)