]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5605b491797ced1965b9f58121563c35f31503d8
tree2737a51fd9e2cfc23afac82f9aba8361d8ed90c5
parent110b4588146c081ad952005d4cd8d10e9d03f6d2
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