From: Mark Fasheh Date: Fri, 5 Oct 2007 19:09:05 +0000 (-0700) Subject: ocfs2: Create locks at initially requested level X-Git-Tag: v2.6.24-rc3~176^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=019d1b2247c6898589560c6f3b3e7ec280b0010a;p=pandora-kernel.git ocfs2: Create locks at initially requested level If we have not yet created a cluster lock, ocfs2_cluster_lock() will first create it at NLMODE, and then convert the lock to either PRMODE or EXMODE (whichever is requested). Change ocfs2_cluster_lock() to just create the lock at the initially requested level. ocfs2_locking_ast() handles this case fine, so the only update required was in setup of locking state. This should reduce the number of network messages required for a new lock by one, providing an incremental performance enhancement. Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed