From: Olga Kornievskaia Date: Fri, 12 Jun 2015 20:53:30 +0000 (-0400) Subject: Recover from stateid-type error on SETATTR X-Git-Tag: omap-for-v4.3/legacy-v2-signed~68^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae2ffef383fad723690a4c5bad70f7035fd7d71a;p=pandora-kernel.git Recover from stateid-type error on SETATTR Client can receives stateid-type error (eg., BAD_STATEID) on SETATTR when delegation stateid was used. When no open state exists, in case of application calling truncate() on the file, client has no state to recover and fails with EIO. Instead, upon such error, return the bad delegation and then resend the SETATTR with a zero stateid. Signed-off: Olga Kornievskaia Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed