From: Lars Ellenberg Date: Wed, 3 Mar 2010 01:25:33 +0000 (+0100) Subject: drbd_disconnect: grab meta.socket mutex as well X-Git-Tag: v2.6.34-rc4~11^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4589d7f829951c1713ef5a4ad1a9bb563da329b5;p=pandora-kernel.git drbd_disconnect: grab meta.socket mutex as well Fixes a race and potential kernel panic if e.g. the worker was just about to send a few P_RS_IS_IN_SYNC via the meta socket for checksum based resync, while the receiver destroys the sockets in drbd_disconnect. To make sure no-one is using the meta socket, it is not enough to stop the asender... Grab the meta socket mutex before destroying it. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed