pNFS: Don't clear the layout return info if there are segments to return
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 1 May 2017 21:03:44 +0000 (17:03 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 2 May 2017 16:35:33 +0000 (12:35 -0400)
commit5466d21411baf413c838d9a197f6734e94910a65
tree3b99bb0b46bd5a526d0349ba4c2f6ce14d4826d6
parent1f18b82c3437a398562e748c22fcd2f71c2e230c
pNFS: Don't clear the layout return info if there are segments to return

In pnfs_clear_layoutreturn_info, ensure that we don't clear the layout
return info if there are new segments queued for return due to, for
instance, a race between a LAYOUTRETURN and a failed I/O attempt.

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