mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
libceph: drop unused con parameter of calc_target()
This bit was omitted from a561372405
("libceph: fix PG split vs OSD
(re)connect race") to avoid backport conflicts.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
96ac9158a2
commit
8edf84ba4d
@ -1505,7 +1505,6 @@ enum calc_target_result {
|
||||
|
||||
static enum calc_target_result calc_target(struct ceph_osd_client *osdc,
|
||||
struct ceph_osd_request_target *t,
|
||||
struct ceph_connection *con,
|
||||
bool any_change)
|
||||
{
|
||||
struct ceph_pg_pool_info *pi;
|
||||
@ -2289,7 +2288,7 @@ static void __submit_request(struct ceph_osd_request *req, bool wrlocked)
|
||||
dout("%s req %p wrlocked %d\n", __func__, req, wrlocked);
|
||||
|
||||
again:
|
||||
ct_res = calc_target(osdc, &req->r_t, NULL, false);
|
||||
ct_res = calc_target(osdc, &req->r_t, false);
|
||||
if (ct_res == CALC_TARGET_POOL_DNE && !wrlocked)
|
||||
goto promote;
|
||||
|
||||
@ -3112,7 +3111,7 @@ static void linger_submit(struct ceph_osd_linger_request *lreq)
|
||||
lreq->reg_req->r_ops[0].notify.cookie = lreq->linger_id;
|
||||
}
|
||||
|
||||
calc_target(osdc, &lreq->t, NULL, false);
|
||||
calc_target(osdc, &lreq->t, false);
|
||||
osd = lookup_create_osd(osdc, lreq->t.osd, true);
|
||||
link_linger(osd, lreq);
|
||||
|
||||
@ -3729,7 +3728,7 @@ recalc_linger_target(struct ceph_osd_linger_request *lreq)
|
||||
struct ceph_osd_client *osdc = lreq->osdc;
|
||||
enum calc_target_result ct_res;
|
||||
|
||||
ct_res = calc_target(osdc, &lreq->t, NULL, true);
|
||||
ct_res = calc_target(osdc, &lreq->t, true);
|
||||
if (ct_res == CALC_TARGET_NEED_RESEND) {
|
||||
struct ceph_osd *osd;
|
||||
|
||||
@ -3801,8 +3800,7 @@ static void scan_requests(struct ceph_osd *osd,
|
||||
n = rb_next(n); /* unlink_request(), check_pool_dne() */
|
||||
|
||||
dout("%s req %p tid %llu\n", __func__, req, req->r_tid);
|
||||
ct_res = calc_target(osdc, &req->r_t, &req->r_osd->o_con,
|
||||
false);
|
||||
ct_res = calc_target(osdc, &req->r_t, false);
|
||||
switch (ct_res) {
|
||||
case CALC_TARGET_NO_ACTION:
|
||||
force_resend_writes = cleared_full ||
|
||||
@ -3911,7 +3909,7 @@ static void kick_requests(struct ceph_osd_client *osdc,
|
||||
n = rb_next(n);
|
||||
|
||||
if (req->r_t.epoch < osdc->osdmap->epoch) {
|
||||
ct_res = calc_target(osdc, &req->r_t, NULL, false);
|
||||
ct_res = calc_target(osdc, &req->r_t, false);
|
||||
if (ct_res == CALC_TARGET_POOL_DNE) {
|
||||
erase_request(need_resend, req);
|
||||
check_pool_dne(req);
|
||||
|
Loading…
Reference in New Issue
Block a user