From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754045AbbHOQA7 (ORCPT ); Sat, 15 Aug 2015 12:00:59 -0400 Received: from verein.lst.de ([213.95.11.211]:56887 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbbHOQA5 (ORCPT ); Sat, 15 Aug 2015 12:00:57 -0400 Date: Sat, 15 Aug 2015 18:00:55 +0200 From: Christoph Hellwig To: Dan Williams Cc: Christoph Hellwig , Ross Zwisler , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , Jonathan Corbet , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Jens Axboe , Martin Schwidefsky , Heiko Carstens , linux390@de.ibm.com, Alexander Viro , Matthew Wilcox , Jeff Layton , Andrew Morton , Omar Sandoval , Boaz Harrosh , Miklos Szeredi , Jan Kara , Wolfram Sang , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Gerald Schaefer , Ameen Ali , "Martin K. Petersen" , Sagi Grimberg , Mike Snitzer , Tejun Heo , Shaohua Li , Ming Lei , linux-doc@vger.kernel.org, linuxppc-dev , linux-s390@vger.kernel.org, linux-fsdevel , Dave Chinner Subject: Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation Message-ID: <20150815160055.GB26248@lst.de> References: <1439484671-15718-1-git-send-email-ross.zwisler@linux.intel.com> <1439484671-15718-8-git-send-email-ross.zwisler@linux.intel.com> <20150815091950.GA21487@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 15, 2015 at 08:44:27AM -0700, Dan Williams wrote: > That said, while we don't need special accessors we do need guarantees > that anything that has written to a persistent memory address has done > so in a way that wmb_pmem() is able to flush it. It's more of a "I've > audited this code path for wmb_pmem() compatibility so use this api to > write to pmem." I'm more worried about things where don't just do plain loads and stores to a pmem region but DMA, which will end up as a nightmare of casts. But we can wait and see how that evolves in the end..