Received: by 10.213.65.68 with SMTP id h4csp123338imn; Tue, 27 Mar 2018 18:15:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bPiyN7bWbdypUpuD3b9aTYS8zqEJ2tNfw6Dc7swRux+P6tv6RdL3FT4paVJgDs7Qh16Qk X-Received: by 10.99.117.73 with SMTP id f9mr1075000pgn.242.1522199735721; Tue, 27 Mar 2018 18:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522199735; cv=none; d=google.com; s=arc-20160816; b=cfjLkPsPRm1v5osygUUB0jrijXnVflF32/NSXrdA/27hlg6lGxvJnu5VgdF+YWvKqv uorwYQXFzgV+E2ALeFVlx6q2F9WORFxRXaLLV+heAbxutgZbJyfQIGXrT8mpMz+IpYNW cAd8hhJLTmU9zsl92EPZhnO5QoonFnS5ZYNmX3qNCDu1yF8txY5QfP4emy8K6S2Drpvj OrQTx8j1t5jYhVa84fIcqSg29Tgm69HFpNjbmJCaUGgyqjDKRQn+7ndKe2KajIYP1WCO t/i3c2Xuzmi/D9hHxw1FuhTVz8ZdVM/9Pt0NuYrmR2gaBHzygwa61OIJOgXw3rylJ3s0 57Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=bw6i1vNB9WT89kx2wCTywn77zvHHWZzx/T4dsdnxkIQ=; b=XWXytWcofZCQ2E1tMXGNQLRbgEMqQt3t24KwyAbO40vMlOD6iMgXb/rh5zq9Wg7Jys 3C/MV6+T6wdJCBL3JyhgQTrMGwbf0V6zl/S4b3vquJ2TO8kUvljW0yC+d2YXt6C8chUj gS/IdSaBp3YmK0fVduxy5OZRrAkwBxucaPcq3EJXE+0WUN5xE6xlOaTUVRz8mrkDXKjR 9gGDF9A8ufxvg36GVjjHNcLGifmuHU7yl3Y8XEswQuyAXYR5HWk6UxoZUf3npUukSzJ3 MGhy9TbEeIRAG5ku08LkJp0sE1kOzz5hHD2MjkHwQJWpedYZ7e2a/ER30ck3kbQiOmbj l+Vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si1630480pgc.529.2018.03.27.18.15.20; Tue, 27 Mar 2018 18:15:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752796AbeC1BO0 (ORCPT + 99 others); Tue, 27 Mar 2018 21:14:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6706 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752594AbeC1BOZ (ORCPT ); Tue, 27 Mar 2018 21:14:25 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 00AF8DD58E7A6; Wed, 28 Mar 2018 09:14:12 +0800 (CST) Received: from [127.0.0.1] (10.177.16.168) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.361.1; Wed, 28 Mar 2018 09:14:12 +0800 Subject: Re: [V9fs-developer] [PATCH] fs/9p: don't set SB_NOATIME by default To: Andrew Morton References: <5AB9A377.6080906@huawei.com> <20180327161529.f7d22a36ffc92dc1a3e15d92@linux-foundation.org> CC: Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , , , Greg Kurz From: jiangyiwen Message-ID: <5ABAEC64.1060003@huawei.com> Date: Wed, 28 Mar 2018 09:14:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20180327161529.f7d22a36ffc92dc1a3e15d92@linux-foundation.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.16.168] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/3/28 7:15, Andrew Morton wrote: > On Tue, 27 Mar 2018 09:50:47 +0800 jiangyiwen wrote: > >> User use some syscall, for example mmap(v9fs_file_mmap), it will not >> update atime even if user's mnt_flags without MNT_NOATIME, because >> v9fs default set SB_NOATIME in v9fs_set_super. >> >> For supporting access time is updated when user mount with relatime, >> we should not set SB_NOATIME by default. >> >> ... >> >> --- a/fs/9p/vfs_super.c >> +++ b/fs/9p/vfs_super.c >> @@ -94,7 +94,7 @@ static int v9fs_set_super(struct super_block *s, void *data) >> if (v9ses->cache) >> sb->s_bdi->ra_pages = (VM_MAX_READAHEAD * 1024)/PAGE_SIZE; >> >> - sb->s_flags |= SB_ACTIVE | SB_DIRSYNC | SB_NOATIME; >> + sb->s_flags |= SB_ACTIVE | SB_DIRSYNC; >> if (!v9ses->cache) >> sb->s_flags |= SB_SYNCHRONOUS; >> > > So strictly speaking, this is a non-backward-compatible change, yes? > > Please describe the circumstances under which an existing user might be > harmed by this. I *think* such harm will occur if the user was already > using 'mount -o relatime', yes? They previously weren't getting > relatime treatment, but now they will, and things will be a little slower. > Yes, after using this change, if user was already using 'mount -o relatime', their atime will be changed, and some operations will result in slower performance, but I think user should use 'noatime' option if they hope their file's atime is not updated and user should not depend on the internal implement. > If correct, that sounds acceptable. > > . >