Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754436AbcCBJRt (ORCPT ); Wed, 2 Mar 2016 04:17:49 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:62507 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754213AbcCBJRq (ORCPT ); Wed, 2 Mar 2016 04:17:46 -0500 From: Arnd Bergmann To: "Darrick J. Wong" Cc: axboe@kernel.dk, hch@infradead.org, akpm@linux-foundation.org, torvalds@linux-foundation.org, martin.petersen@oracle.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, shane.seymour@hpe.com, bfields@fieldses.org, linux-fsdevel@vger.kernel.org, jlayton@poochiereds.net Subject: Re: [PATCH v5.1 0/2] create BLKZEROOUT ioctl that invalidates page cache Date: Wed, 02 Mar 2016 10:15:02 +0100 Message-ID: <1889689.0axyUkdxkf@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160302040932.16685.62789.stgit@birch.djwong.org> References: <20160302040932.16685.62789.stgit@birch.djwong.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:jXjOcR0/+7FFqSC/h9yRcLKtHYc/MW5ImVjZz5rPnlM3RYsobXv 5khVLGhznM6fDPeMIIp25un96g445FsPjzn8GXAuoWPC4TipdpHvk1NytuZqkXQQN8plofj eNChfgrhLdavAaXhCSXsbzxcp2ro7Q7YpEIIS5Vz4H39IKaGMbriHP/I9Rca1SkhWYHJHA2 rSKzudwKKYvARWcJbXjBg== X-UI-Out-Filterresults: notjunk:1;V01:K0:m2R0ZSz/oPc=:KY6cLiXPl+SqJpRhmUbhz9 vCPIu0wFnVOv5Je3UlJzglkLDg/EFuzwmuDxp5PQ+IS3Aqbf7/jBkRcmvD7tNoCRLiKFYY7vp o+6IKnvTL/hEm8GHhWjEex4r8uqGwJkAjUjKThTC+rL2rFmgym5hkMKIQZMkitgHE3/xn//jw 5pL7K1pTDyrdBwv1SzsHitK8DcnIBNPYhKJezBCmeaSZLSiDNs+0pEy1YzVhr09NuLZicZcdF VXY783gFP0sIOaMMHevfsCkBEyjklZXh1fAKxhvknz28wShkhVit1gWJgZHZeZE/JFxI69dVN jJJPKWZlNMgGRjokszD/hINYx4eKuLlOrGDuaZQgVov1dXSK8VWoqs1KW5R0yFRaPMA+sx878 Rxu1NdWRTEaiqhridvjGjSBEegKmMUNSGIaDHbQPnWAGEVGBs28okA4g569WFonXbkIOQNSv7 EKK+K5eNHA59JEMIPDfr8tQLMhrJKT3nnxk5tiX6aruBam7xW2toe4yztLDKrZTBJzP1RgDYl 09bCHQJ40Us2BHxp6zFaooVuw9FliomAbjdKjC9OAh1sIM3V3u7C6EUg0dRQcja1imQphVB0i 2p8xYRD49MrfWL3V8SuvvePii9n2IczCT5zViKbqj/Rjp5oy/cmDv03/aGqFmhzDEOjgcCEXA z4oUaz6VDb7x5ZKETthoXdcdJehXyc7Zi4DDsn0KZokKt1p7OmnRnmJt/PIxIV0raHIkVqE/z ani2AKqXBtO3VU8P Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1188 Lines: 28 On Tuesday 01 March 2016 20:09:32 Darrick J. Wong wrote: > This is (yet another) repost of the patch series that fixes the > existing BLKZEROOUT ioctl to invalidate the page cache if the zeroing > command to the underlying device succeeds. This patch is against > 4.5-rc6 and hasn't changed much in months. > > The new BLKZEROOUT ioctl has the same semantics as the old one, but it > invalidates the page cache to prevent surprising results, just like > how dio writes invalidate page cache. > > I've incorporated all the feedback I've received into these patches, > but haven't heard yea or nay or anything at all from the maintainer. > Will someone please pick this up for 4.6? > > Comments and questions are, as always, welcome. I'm missing the background on this, just saw the patch fly by, so sorry if this has been asked before: Why do you want to invalidate the cache? Is this to save RAM or is something else going to write here and you have to invalidate it for correctness? If you just want to save RAM, would it be possible to instead point the page cache to the empty zero page to speed up subsequent reads? Maybe that just causes more complexity than it helps. Arnd