From: Jeff Layton Date: Wed, 30 Jul 2014 01:34:33 +0000 (-0400) Subject: nfsd: don't allow CLOSE to proceed until refcount on stateid drops X-Git-Tag: cleanup-for-v3.18~60^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b401be22b5cf059290ee98106bc780e087407d45;p=pandora-kernel.git nfsd: don't allow CLOSE to proceed until refcount on stateid drops Once we remove client_mutex protection, it'll be possible to have an in-flight operation using an openstateid when a CLOSE call comes in. If that happens, we can't just put the sc_file reference and clear its pointer without risking an oops. Fix this by ensuring that v4.0 CLOSE operations wait for the refcount to drop before proceeding to do so. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed