From: Steve Dickson Date: Wed, 15 May 2013 18:51:49 +0000 (-0400) Subject: NFSD: Don't give out read delegations on creates X-Git-Tag: v3.11-rc1~32^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a0590aec3ca5e86a64b87e004244abc4dd1faf9;p=pandora-kernel.git NFSD: Don't give out read delegations on creates When an exclusive create is done with the mode bits set (aka open(testfile, O_CREAT | O_EXCL, 0777)) this causes a OPEN op followed by a SETATTR op. When a read delegation is given in the OPEN, it causes the SETATTR to delay with EAGAIN until the delegation is recalled. This patch caused exclusive creates to give out a write delegation (which turn into no delegation) which allows the SETATTR seamlessly succeed. Signed-off-by: Steve Dickson [bfields: do this for any CREATE, not just exclusive; comment] Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed