From patchwork Mon Mar 28 02:25:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 12793114 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59BA7C433EF for ; Mon, 28 Mar 2022 02:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237562AbiC1C1d (ORCPT ); Sun, 27 Mar 2022 22:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234955AbiC1C1c (ORCPT ); Sun, 27 Mar 2022 22:27:32 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1297B32EC8 for ; Sun, 27 Mar 2022 19:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648434352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xsHhfUs66bbbXza3E8A4RMVlljtRM9C2VkSN3/JNqDo=; b=DfIBEDdSW334X2D7mYirbWHMTp/YEGbTNlVI0GxCW/BDxiBdmnS+Dwwf5urxScWYcfWzlY u4m8tYZtYfAsjztjAcX2PBhTFHHiPXvY23nG8N5fvOcoqlycAK4j7JLAy6GonhBq9LQHSn oD6eB60LJ9B4B4E3kpFUGKFST07nErY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-54-pec7M6aaOvKoHry213u1uQ-1; Sun, 27 Mar 2022 22:25:48 -0400 X-MC-Unique: pec7M6aaOvKoHry213u1uQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 17E6E811E78; Mon, 28 Mar 2022 02:25:48 +0000 (UTC) Received: from lxbceph1.gsslab.pek2.redhat.com (unknown [10.72.47.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7BE301400B1C; Mon, 28 Mar 2022 02:25:44 +0000 (UTC) From: xiubli@redhat.com To: jlayton@kernel.org Cc: idryomov@gmail.com, vshankar@redhat.com, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo Li Subject: [PATCH] ceph: remove unused CEPH_MDS_LEASE_RELEASE related code Date: Mon, 28 Mar 2022 10:25:35 +0800 Message-Id: <20220328022535.847164-1-xiubli@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org From: Xiubo Li The ceph_mdsc_lease_release() has been removed by commit(8aa152c77890) and the CEPH_MDS_LEASE_RELEASE will never be used. Signed-off-by: Xiubo Li Reviewed-by: Jeff Layton --- fs/ceph/mds_client.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 459c6f23915f..a89ee866ebbb 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -4424,12 +4424,6 @@ void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session, memcpy((void *)(lease + 1) + 4, dentry->d_name.name, dentry->d_name.len); spin_unlock(&dentry->d_lock); - /* - * if this is a preemptive lease RELEASE, no need to - * flush request stream, since the actual request will - * soon follow. - */ - msg->more_to_follow = (action == CEPH_MDS_LEASE_RELEASE); ceph_con_send(&session->s_con, msg); }