From: Christoph Hellwig Subject: xfs: untangle the direct I/O and DAX path, fix DAX locking Date: Wed, 22 Jun 2016 17:27:08 +0200 Message-ID: <1466609236-23801-1-git-send-email-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" To: xfs-VZNHf3L845pBDgjK7y7TUQ@public.gmane.org Cc: linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nvdimm-y27Ovi1pjclAfugRpC6u6w@public.gmane.org List-Id: linux-nvdimm@lists.01.org The last patch is what started the series: XFS currently uses the direct I/O locking strategy for DAX because DAX was overloaded onto the direct I/O path. For XFS this means that we only take a shared inode lock instead of the normal exclusive one for writes IFF they are properly aligned. While this is fine for O_DIRECT which requires explicit opt-in from the application it's not fine for DAX where we'll suddenly lose expected and required synchronization of the file system happens to use DAX undeneath. Patches 1-7 just untangle the code so that we can deal with DAX on it's own easily.