NFSv4: Report the error from nfs4_select_rw_stateid()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 22 Jul 2019 17:06:17 +0000 (18:06 +0100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Aug 2019 02:35:40 +0000 (22:35 -0400)
commit731c74dd987e4f1f3179223314c039ce38dd4f19
tree8990cf47dde9b35989d24bc658fab2ad4b5b8eb7
parentc34fae003c79570b6c930b425fea3f0b7b1e7056
NFSv4: Report the error from nfs4_select_rw_stateid()

In pnfs_update_layout() ensure that we do report any fatal errors from
nfs4_select_rw_stateid().

Fixes: d9aba2b40de6 ("NFSv4: Don't use the zero stateid with layoutget")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c