]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Always set NFS_LAYOUT_RETURN_REQUESTED with lo->plh_return_iomode
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 15 Feb 2016 17:56:17 +0000 (12:56 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 15 Feb 2016 18:03:30 +0000 (13:03 -0500)
commitc6441422b6a0428539f2019e777d477f220cf9d3
treefa2fe7369d3d85f1189fdf21e4aaca790ed4b36c
parentb7b323eb4ffefb7c6785e7de5d73ae0fad9fbc48
pNFS: Always set NFS_LAYOUT_RETURN_REQUESTED with lo->plh_return_iomode

When setting the layout return mode, we must always also set the
NFS_LAYOUT_RETURN_REQUESTED flag to ensure that we send a layoutreturn.
Otherwise pnfs_error_mark_layout_for_return() could set the mode, but
fail to send the layoutreturn because another is already in flight.

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