From: Sage Weil Date: Thu, 8 Oct 2009 23:55:47 +0000 (-0700) Subject: ceph: fix osd request submission race X-Git-Tag: v2.6.34-rc2~9^2~177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1ea8823be69ebebaface912142190e910711984;p=pandora-kernel.git ceph: fix osd request submission race The osd request submission path registers the request, drops and retakes the request_mutex, then sends it to the OSD. A racing kick_requests could sent it during that interval, causing the same msg to be sent twice and BUGing in the msgr. Fix by only sending the message if it hasn't been touched by other threads. Signed-off-by: Sage Weil --- Reading git-diff-tree failed