From: David Teigland Date: Tue, 31 Oct 2006 17:55:56 +0000 (-0600) Subject: [DLM] fix requestqueue race X-Git-Tag: v2.6.20-rc1~145^2^2~5^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4400156d415540086c34a06e5d233122d6bf56a;p=pandora-kernel.git [DLM] fix requestqueue race Red Hat BZ 211914 There's a race between dlm_recoverd (1) enabling locking and (2) clearing out the requestqueue, and dlm_recvd (1) checking if locking is enabled and (2) adding a message to the requestqueue. An order of recoverd(1), recvd(1), recvd(2), recoverd(2) will result in a message being left on the requestqueue. The fix is to have dlm_recvd check if dlm_recoverd has enabled locking after taking the mutex for the requestqueue and if it has processing the message instead of queueing it. Signed-off-by: David Teigland Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed