pNFS: Clear the layout metadata if the server changed the layout stateid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 24 Jul 2016 19:04:07 +0000 (15:04 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 24 Jul 2016 20:16:41 +0000 (16:16 -0400)
commitd9b61708fe6dcab7b50abfb87cb47690d00269a1
tree87159e379534531d8a905cd774cb15fc3e7b864b
parent5f46be049b0dfdd36188058f044c165e1d4b8f56
pNFS: Clear the layout metadata if the server changed the layout stateid

If the server changed the layout stateid's "other" field, then
we should treat the old layout as being completely gone. In that
case, we want to clear the metadata such as scheduled layoutreturns.

Do this by calling pnfs_mark_layout_stateid_invalid().

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