Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4484558pxa; Mon, 10 Aug 2020 10:07:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEdcKMJ2rMs9m8KxJJXqeA1qmM/WbslUcxy0g2f9VhDFustf4ZjyF10pxYwmaMPgeSS8Ag X-Received: by 2002:a17:906:7f0b:: with SMTP id d11mr23881159ejr.116.1597079235811; Mon, 10 Aug 2020 10:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597079235; cv=none; d=google.com; s=arc-20160816; b=EOJgYWURsq9AhL/KgFYiuPO3DjmJo2i+lzDjABdx/lgq2Qnsj3JIDIGH1rjWu5naL/ qzisQoAOmWQaUJ5PHjOzFkvUDO40Eh2+5Fz/IMREuT5taO/Ra+WmXVrFYlU69Xyl9/4/ qdNnNKj4t15a8MjxzN+bnlYsWD/Ea2UleFx8WQNZBE6QTIdEjwn438fTIHrgeYPoBrLl /agldKkydcIiqmtNBzpUuj6Bm/H3kOK8QodMJWKZ8Jq/HaM6Nq1fKuaGgrLTWEXULid/ rHEDwF4aPy7V2uNyALwB+3ne9n7XqJn7np7XpRzq+G2HCHW/HIiwIinGCiHQ13gCt8XZ XYYw== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=bG1UX7UvzyL+s17qjFjJT/RaH5grYgUy2tkao7iejMk=; b=dpy3Ln5SVLEUCdRr6FvGpWTmnaEQyjdeNFvz4lDFczVuohBqVCKaxRPfNMpmaWDvwA tdjLVqWtmBvE1ICKCXWVF4iUqR/y7jCq2HWK5Dqc2DPzmuTCdVh9+JrJBANm0ljkQwiK uZWXSVnMKO5kll/KyAC4FT8E7Szsm6ONpKwtF7NSza57CUujsbsy1SZwiGgCJkEV2gHm wQ9H9VnSU8+BbrhRmaLVAlTP1x3s7Kuh4dSV3oBwurCLDH5Fdphx6TKgFRuahupMae3u Yu5bKXCz7aRVoDzowffvcW5PBzwkodJwY8wyvjuiNcaIrwLgbHbgcz1dio8La3rBjXYh jqJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gXSEszn4; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si11528134edi.91.2020.08.10.10.06.44; Mon, 10 Aug 2020 10:07:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gXSEszn4; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728055AbgHJRGd (ORCPT + 99 others); Mon, 10 Aug 2020 13:06:33 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:45647 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728053AbgHJRGc (ORCPT ); Mon, 10 Aug 2020 13:06:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597079190; 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: in-reply-to:in-reply-to:references:references; bh=bG1UX7UvzyL+s17qjFjJT/RaH5grYgUy2tkao7iejMk=; b=gXSEszn4R5yaE8Xi18eY28IJzTmzzo+mu7WpxUaGkNAcwTPdRIbitQGScLWhfbEY+yBVh8 bF/b235hZWziI0RSayhRF9QqQM6/tu7Y1gqh5JpjOC1BeeW4HGjuXfZqZqJt2U1yafpQu7 Dm/9XYxnG7S3ERO+V4v73q3rGs3QOic= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-395-hw8n6PypMZWCrY5hB-H1jw-1; Mon, 10 Aug 2020 13:06:28 -0400 X-MC-Unique: hw8n6PypMZWCrY5hB-H1jw-1 Received: by mail-qv1-f72.google.com with SMTP id y30so7691810qvy.9 for ; Mon, 10 Aug 2020 10:06:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=bG1UX7UvzyL+s17qjFjJT/RaH5grYgUy2tkao7iejMk=; b=hFhwOrXkzGz1Cp/ze2xeoE30qu3h+CAW0NFB5IuX+80D2h6EN2UrImBiX5G93ILvnK De0mfVj4iNp+0TIzgvxY3A3XntlnmDHq1F7CKJcOGpdo8/ij/q6tBu4QtM98lZp9S6Bp +BQznSJ9mpxn3MooxICYVPN9igRstmX42KXAuNu5mg5jdSVLPUc77eKAV983MB4lSWwY wIkhlB/BNhRwjrww2yRqwX2sYCPNJozZJTr+NhliKYX9gPRyEFx9fvJBWWFdajmjrxjX BjfyBElft6YuXPHYLq4p3OUbqkizN3BEQmw1rtGF/Oc+JzTzsSoFUVjC6ej+4lU0XIRK CWCw== X-Gm-Message-State: AOAM531jc8wbQYud8ab8M5vJZMOO2VL7JNcwrjmq425OMgyk7FWi1FYj sU2hTrexzzyv8B0ko/a2rbnERoM7MzIL2uLRm2ig3EoQie2DrFvvluCynHo4NpHQFyWVaBVPe/X ZEhDwTZ8ju3QDpeIxJIZR X-Received: by 2002:ac8:4117:: with SMTP id q23mr29005611qtl.186.1597079188355; Mon, 10 Aug 2020 10:06:28 -0700 (PDT) X-Received: by 2002:ac8:4117:: with SMTP id q23mr29005574qtl.186.1597079188107; Mon, 10 Aug 2020 10:06:28 -0700 (PDT) Received: from tleilax.poochiereds.net (68-20-15-154.lightspeed.rlghnc.sbcglobal.net. [68.20.15.154]) by smtp.gmail.com with ESMTPSA id l1sm15922877qtp.96.2020.08.10.10.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2020 10:06:27 -0700 (PDT) Message-ID: Subject: Re: [GIT PULL] fscache rewrite -- please drop for now From: Jeff Layton To: David Wysochanski , David Howells Cc: Steve French , Linus Torvalds , Alexander Viro , Matthew Wilcox , Christoph Hellwig , Trond Myklebust , Anna Schumaker , Steve French , Eric Van Hensbergen , linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-nfs , CIFS , ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-fsdevel , LKML Date: Mon, 10 Aug 2020 13:06:26 -0400 In-Reply-To: References: <447452.1596109876@warthog.procyon.org.uk> <1851200.1596472222@warthog.procyon.org.uk> <667820.1597072619@warthog.procyon.org.uk> <672169.1597074488@warthog.procyon.org.uk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4 (3.36.4-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, 2020-08-10 at 12:35 -0400, David Wysochanski wrote: > On Mon, Aug 10, 2020 at 11:48 AM David Howells wrote: > > Steve French wrote: > > > > > cifs.ko also can set rsize quite small (even 1K for example, although > > > that will be more than 10x slower than the default 4MB so hopefully no > > > one is crazy enough to do that). > > > > You can set rsize < PAGE_SIZE? > > > > > I can't imagine an SMB3 server negotiating an rsize or wsize smaller than > > > 64K in today's world (and typical is 1MB to 8MB) but the user can specify a > > > much smaller rsize on mount. If 64K is an adequate minimum, we could change > > > the cifs mount option parsing to require a certain minimum rsize if fscache > > > is selected. > > > > I've borrowed the 256K granule size used by various AFS implementations for > > the moment. A 512-byte xattr can thus hold a bitmap covering 1G of file > > space. > > > > > > Is it possible to make the granule size configurable, then reject a > registration if the size is too small or not a power of 2? Then a > netfs using the API could try to set equal to rsize, and then error > out with a message if the registration was rejected. > ...or maybe we should just make fscache incompatible with an rsize that isn't an even multiple of 256k? You need to set mount options for both, typically, so it would be fairly trivial to check this at mount time, I'd think. -- Jeff Layton