From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 23 May 2018 20:50:17 +0200 From: Gerald Schaefer To: Christoph Hellwig Cc: Jan Kara , Dan Williams , linux-nvdimm , Martin Schwidefsky , Heiko Carstens , Michal Hocko , kbuild test robot , Thomas Meyer , Dave Jiang , =?UTF-8?B?SsOpcsO0bWU=?= Glisse , linux-fsdevel , Linux MM Subject: Re: [PATCH v10] mm: introduce MEMORY_DEVICE_FS_DAX and CONFIG_DEV_PAGEMAP_OPS In-Reply-To: <20180522062806.GD7816@lst.de> References: <152658753673.26786.16458605771414761966.stgit@dwillia2-desk3.amr.corp.intel.com> <20180518094616.GA25838@lst.de> <20180521090410.7ygosxzjfhceqrq4@quack2.suse.cz> <20180522062806.GD7816@lst.de> MIME-Version: 1.0 Message-Id: <20180523205017.0f2bc83e@thinkpad> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: On Tue, 22 May 2018 08:28:06 +0200 Christoph Hellwig wrote: > On Mon, May 21, 2018 at 11:04:10AM +0200, Jan Kara wrote: > > We definitely do have customers using "execute in place" on s390x from > > dcssblk. I've got about two bug reports for it when customers were updating > > from old kernels using original XIP to kernels using DAX. So we need to > > keep that working. > > That is all good an fine, but I think time has come where s390 needs > to migrate to provide the pmem API so that we can get rid of these > special cases. Especially given that the old XIP/legacy DAX has all > kinds of known bugs at this point in time. I haven't yet looked at this patch series, but I can feel that this FS_DAX_LIMITED workaround is beginning to cause some headaches, apart from being quite ugly of course. Just to make sure I still understand the basic problem, which I thought was missing struct pages for the dcssblk memory, what exactly do you mean with "provide the pmem API", is there more to do? I do have a prototype patch lying around that adds struct pages, but didn't yet have time to fully test/complete it. Of course we initially introduced XIP as a mechanism to reduce memory consumption, and that is probably the use case for the remaining customer(s). Adding struct pages would somehow reduce that benefit, but as long as we can still "execute in place", I guess it will be OK. Regards, Gerald