pnfs/blocklayout: set PNFS_LAYOUTRETURN_ON_ERROR
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 8 Dec 2017 17:52:57 +0000 (12:52 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 15 Jan 2018 04:06:29 +0000 (23:06 -0500)
commitd78471d32bb60837930026e11828af596fb4bdac
tree2737a51fd9e2cfc23afac82f9aba8361d8ed90c5
parentad6b0241c94e2732f928ec9ef5b3561d7448c8fe
pnfs/blocklayout: set PNFS_LAYOUTRETURN_ON_ERROR

If there's an error doing I/O to block device, and the client resends the
I/O to the MDS, the MDS must recall the layout from the client before
processing the I/O.  Let's preempt that exchange by returning the layout
before falling back to the MDS when there's an error.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/blocklayout.c
fs/nfs/pnfs.h