From: Jeff Layton Date: Mon, 1 Sep 2014 19:06:54 +0000 (-0400) Subject: locks: give lm_break a return value X-Git-Tag: fixes-against-v3.18-rc2~119^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d01b7f5e7576858b71cbaa72b541e17a229cb91;p=pandora-kernel.git locks: give lm_break a return value Christoph suggests: "Add a return value to lm_break so that the lock manager can tell the core code "you can delete this lease right now". That gets rid of the games with the timeout which require all kinds of race avoidance code in the users." Do that here and have the nfsd lease break routine use it when it detects that there was a race between setting up the lease and it being broken. Signed-off-by: Jeff Layton Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed