From: Jeff Layton Subject: Re: [PATCH v3 0/6] ceph: don't request caps for idle open files Date: Fri, 28 Feb 2020 08:01:11 -0500 Message-ID: <61519b99b630ea6be7893bf9493b0f3d68a54e8d.camel@kernel.org> References: <20200228115550.6904-1-zyan@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.kernel.org ([198.145.29.99]:34084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgB1NBN (ORCPT ); Fri, 28 Feb 2020 08:01:13 -0500 In-Reply-To: <20200228115550.6904-1-zyan@redhat.com> Sender: ceph-devel-owner@vger.kernel.org List-ID: To: "Yan, Zheng" , ceph-devel@vger.kernel.org On Fri, 2020-02-28 at 19:55 +0800, Yan, Zheng wrote: > This series make cephfs client not request caps for open files that > idle for a long time. For the case that one active client and multiple > standby clients open the same file, this increase the possibility that > mds issues exclusive caps to the active client. > > Yan, Zheng (4): > ceph: always renew caps if mds_wanted is insufficient > ceph: consider inode's last read/write when calculating wanted caps > ceph: simplify calling of ceph_get_fmode() > ceph: remove delay check logic from ceph_check_caps() > > fs/ceph/caps.c | 324 +++++++++++++++-------------------- > fs/ceph/file.c | 39 ++--- > fs/ceph/inode.c | 19 +- > fs/ceph/ioctl.c | 2 + > fs/ceph/mds_client.c | 5 - > fs/ceph/super.h | 35 ++-- > include/linux/ceph/ceph_fs.h | 1 + > 7 files changed, 188 insertions(+), 237 deletions(-) > > changes since v2 > - make __ceph_caps_file_wanted more readable > - add patch 5 and 6, which fix hung write during testing patch 1~4 > Thanks Zheng. This looks good to me -- merged into testing branch with some small revisions to the changelogs. Let me know if I made any mistakes there. -- Jeff Layton