From: Abhijith Das Date: Fri, 14 Sep 2007 04:35:27 +0000 (-0500) Subject: [GFS2] flocks from same process trip kernel BUG at fs/gfs2/glock.c:1118! X-Git-Tag: v2.6.24-rc1~1405^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4c20166dcfca106f0f416bfce200099ed76ab18;p=pandora-kernel.git [GFS2] flocks from same process trip kernel BUG at fs/gfs2/glock.c:1118! This patch adds a new flag to the gfs2_holder structure GL_FLOCK. It is set on holders of glocks representing flocks. This flag is checked in add_to_queue() and a process is permitted to queue more than one holder onto a glock if it is set. This solves the issue of a process not being able to do multiple flocks on the same file. Through a single descriptor, a process can now promote and demote flocks. Through multiple descriptors a process can now queue multiple flocks on the same file. There's still the problem of a process deadlocking itself (because gfs2 blocking locks are not interruptible) by queueing incompatible deadlock. Signed-off-by: Abhijith Das Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed