ocfs2: do not lock/unlock() inode DLM lock
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Thu, 14 Jan 2016 23:17:35 +0000 (15:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit1cce4df04f37d3f7b969e85528fa54f918a06f03
tree77755e8b83e444e1d7a7be7c9384735446666e8c
parent1247017f43a93eae3d64b7c25f3637dc545f5a47
ocfs2: do not lock/unlock() inode DLM lock

DLM does not cache locks.  So, blocking lock and unlock will only make
the performance worse where contention over the locks is high.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <joseph.qi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlmglue.c