From: Trond Myklebust Date: Thu, 9 Jul 2015 21:54:09 +0000 (+0200) Subject: pNFS: pnfs_roc_drain() fix a race with open X-Git-Tag: omap-for-v4.3/fixes-merge-window~179^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdc59cf233433ddd2cd671db02bd6b52323ce63d;p=pandora-kernel.git pNFS: pnfs_roc_drain() fix a race with open If a process reopens the file before we can send off the CLOSE/DELEGRETURN, then pnfs_roc_drain() may end up waiting for a new set of layout segments that are marked as return-on-close, but haven't yet been returned. Fix this by only waiting for those layout segments that were invalidated in pnfs_roc(). Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed