From: Trond Myklebust Date: Fri, 12 Apr 2013 19:04:51 +0000 (-0400) Subject: NFSv4: Fix handling of revoked delegations by setattr X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~98^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b570a975ed276335dc7d148658c1f880ac0a507f;p=pandora-kernel.git NFSv4: Fix handling of revoked delegations by setattr Currently, _nfs4_do_setattr() will use the delegation stateid if no writeable open file stateid is available. If the server revokes that delegation stateid, then the call to nfs4_handle_exception() will fail to handle the error due to the lack of a struct nfs4_state, and will just convert the error into an EIO. This patch just removes the requirement that we must have a struct nfs4_state in order to invalidate the delegation and retry. Reported-by: Andy Adamson Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed