From patchwork Thu Nov 21 10:45:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 11256095 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00717913 for ; Thu, 21 Nov 2019 10:45:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB414208A3 for ; Thu, 21 Nov 2019 10:45:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EzUcm0XQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726858AbfKUKpy (ORCPT ); Thu, 21 Nov 2019 05:45:54 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:28807 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726014AbfKUKpw (ORCPT ); Thu, 21 Nov 2019 05:45:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574333152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vlU61pp1Orpjae2//kfkniEc4rKiPIz8h3zGQWgv5wY=; b=EzUcm0XQLmE0ss8z2/Is4WBHH1UhwUM5y/ClGAOH19G7t4h2WJQQJB5lpoyyRIUkHYdSOl 7RJ2qeFf9xBweKpNsq+KhbVG839j+DX9OVaOrt+/AoGCc+tuv7X2ziOa2SAsP7fdjftrU3 f7KWZolG+VVuSADol7mNwKxVv9elD9U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-23-peqehZ5PN8O-KwQQvTH5kg-1; Thu, 21 Nov 2019 05:45:48 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 814688024DA; Thu, 21 Nov 2019 10:45:47 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-58.pek2.redhat.com [10.72.12.58]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6678967E4D; Thu, 21 Nov 2019 10:45:41 +0000 (UTC) From: xiubli@redhat.com To: jlayton@kernel.org Cc: sage@redhat.com, idryomov@gmail.com, zyan@redhat.com, pdonnell@redhat.com, ceph-devel@vger.kernel.org, Xiubo Li Subject: [PATCH] ceph: remove redundant request session put code Date: Thu, 21 Nov 2019 05:45:37 -0500 Message-Id: <20191121104537.22630-1-xiubli@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: peqehZ5PN8O-KwQQvTH5kg-1 X-Mimecast-Spam-Score: 0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org From: Xiubo Li Since the _do_request() will do it anyway again, so this here makes no sense. This will keep the same with kick_requests() from commit dc69e2e9fcd. Signed-off-by: Xiubo Li --- fs/ceph/mds_client.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index a4e7026aaec9..8ceea0c62fda 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -3025,7 +3025,6 @@ static void handle_forward(struct ceph_mds_client *mdsc, req->r_attempts = 0; req->r_num_fwd = fwd_seq; req->r_resend_mds = next_mds; - put_request_session(req); __do_request(mdsc, req); } ceph_mdsc_put_request(req);