From: David M. Richter Date: Wed, 23 Apr 2008 20:29:01 +0000 (-0400) Subject: leases: move lock allocation earlier in generic_setlease() X-Git-Tag: v2.6.26-rc1~1074^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=190855576743a510219fc67886dace29b825d8cb;p=pandora-kernel.git leases: move lock allocation earlier in generic_setlease() In generic_setlease(), the struct file_lock is allocated after tests for the presence of conflicting readers/writers is done, despite the fact that the allocation might block; this patch moves the allocation earlier. A subsequent set of patches will rely on this behavior to properly serialize between a modified __break_lease() and generic_setlease(). Signed-off-by: David M. Richter Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed