public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst•de>
To: Ross Zwisler <ross.zwisler@linux•intel.com>
Cc: linux-kernel@vger•kernel.org, linux-nvdimm@lists•01.org,
	"Dan Williams" <dan.j.williams@intel•com>,
	"Jonathan Corbet" <corbet@lwn•net>,
	"Benjamin Herrenschmidt" <benh@kernel•crashing.org>,
	"Paul Mackerras" <paulus@samba•org>,
	"Michael Ellerman" <mpe@ellerman•id.au>,
	"Jens Axboe" <axboe@kernel•dk>,
	"Martin Schwidefsky" <schwidefsky@de•ibm.com>,
	"Heiko Carstens" <heiko.carstens@de•ibm.com>,
	linux390@de•ibm.com, "Alexander Viro" <viro@zeniv•linux.org.uk>,
	"Matthew Wilcox" <willy@linux•intel.com>,
	"Jeff Layton" <jlayton@primarydata•com>,
	"Christoph Hellwig" <hch@lst•de>,
	"Andrew Morton" <akpm@linux-foundation•org>,
	"Omar Sandoval" <osandov@osandov•com>,
	"Boaz Harrosh" <boaz@plexistor•com>,
	"Miklos Szeredi" <mszeredi@suse•cz>, "Jan Kara" <jack@suse•cz>,
	"Wolfram Sang" <wsa@the-dreams•de>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix•de>,
	"Gerald Schaefer" <gerald.schaefer@de•ibm.com>,
	"Ameen Ali" <ameenali023@gmail•com>,
	"Martin K. Petersen" <martin.petersen@oracle•com>,
	"Sagi Grimberg" <sagig@mellanox•com>,
	"Mike Snitzer" <snitzer@redhat•com>, "Tejun Heo" <tj@kernel•org>,
	"Shaohua Li" <shli@fb•com>, "Ming Lei" <ming.lei@canonical•com>,
	linux-doc@vger•kernel.org, linuxppc-dev@lists•ozlabs.org,
	linux-s390@vger•kernel.org, linux-fsdevel@vger•kernel.org,
	"Dave Chinner" <david@fromorbit•com>
Subject: Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation
Date: Sat, 15 Aug 2015 11:19:50 +0200	[thread overview]
Message-ID: <20150815091950.GA21487@lst.de> (raw)
In-Reply-To: <1439484671-15718-8-git-send-email-ross.zwisler@linux.intel.com>

On Thu, Aug 13, 2015 at 10:51:11AM -0600, Ross Zwisler wrote:
> Update the annotation for the kaddr pointer returned by direct_access()
> so that it is a __pmem pointer.  This is consistent with the PMEM driver
> and with how this direct_access() pointer is used in the DAX code.

IFF we stick to the __pmem annotations this looks good.

That beeing said I start to really dislike them.  We don't special
accesors to read/write from pmem, we just need to explicitly commit
it if we want to make it persistent.  So I really don't see the need
to treat it special and require all the force casts to and from the
attribute.

  parent reply	other threads:[~2015-08-15  9:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13 16:51 [PATCH v2 0/7] dax: I/O path enhancements Ross Zwisler
2015-08-13 16:51 ` [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation Ross Zwisler
2015-08-13 21:20   ` Dan Williams
2015-08-14 16:55     ` Ross Zwisler
2015-08-14 16:58       ` Dan Williams
2015-08-15  9:11         ` Christoph Hellwig
2015-08-15 15:49           ` Dan Williams
2015-08-15  9:19   ` Christoph Hellwig [this message]
2015-08-15 15:44     ` Dan Williams
2015-08-15 16:00       ` Christoph Hellwig
2015-08-15 18:05         ` Dan Williams
2015-08-17 20:07       ` Ross Zwisler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150815091950.GA21487@lst.de \
    --to=hch@lst$(echo .)de \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=ameenali023@gmail$(echo .)com \
    --cc=axboe@kernel$(echo .)dk \
    --cc=benh@kernel$(echo .)crashing.org \
    --cc=boaz@plexistor$(echo .)com \
    --cc=corbet@lwn$(echo .)net \
    --cc=dan.j.williams@intel$(echo .)com \
    --cc=david@fromorbit$(echo .)com \
    --cc=gerald.schaefer@de$(echo .)ibm.com \
    --cc=heiko.carstens@de$(echo .)ibm.com \
    --cc=jack@suse$(echo .)cz \
    --cc=jlayton@primarydata$(echo .)com \
    --cc=linux-doc@vger$(echo .)kernel.org \
    --cc=linux-fsdevel@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-nvdimm@lists$(echo .)01.org \
    --cc=linux-s390@vger$(echo .)kernel.org \
    --cc=linux390@de$(echo .)ibm.com \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=martin.petersen@oracle$(echo .)com \
    --cc=ming.lei@canonical$(echo .)com \
    --cc=mpe@ellerman$(echo .)id.au \
    --cc=mszeredi@suse$(echo .)cz \
    --cc=osandov@osandov$(echo .)com \
    --cc=paulus@samba$(echo .)org \
    --cc=ross.zwisler@linux$(echo .)intel.com \
    --cc=sagig@mellanox$(echo .)com \
    --cc=schwidefsky@de$(echo .)ibm.com \
    --cc=shli@fb$(echo .)com \
    --cc=snitzer@redhat$(echo .)com \
    --cc=tj@kernel$(echo .)org \
    --cc=u.kleine-koenig@pengutronix$(echo .)de \
    --cc=viro@zeniv$(echo .)linux.org.uk \
    --cc=willy@linux$(echo .)intel.com \
    --cc=wsa@the-dreams$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox