]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a6eb78b0001e83349d91b661944ef3836241f37
tree3b99bb0b46bd5a526d0349ba4c2f6ce14d4826d6
parentc94643ad1834f26f7e9c2a1aec613e7f26e20ec3
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