pNFS: Ensure we check layout validity before marking it for return
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 27 Apr 2017 19:30:00 +0000 (15:30 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 28 Apr 2017 17:07:01 +0000 (13:07 -0400)
commitbdebfccd0ea6fc00c5ea8c832401111958bd24cf
tree2aae88de7f66c62291edb2a18f22bf96f88d4326
parent88bd4f862943205183c2fc20bbba103c71e9990b
pNFS: Ensure we check layout validity before marking it for return

pnfs_error_mark_layout_for_return needs to check that the layout is
valid before calling pnfs_set_plh_return_info().

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c