From: Guanjun He Date: Mon, 9 Jul 2012 02:50:33 +0000 (-0700) Subject: libceph: prevent the race of incoming work during teardown X-Git-Tag: v3.6-rc1~36^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2a3258417eb6a1799cf893350771428875a8287;p=pandora-kernel.git libceph: prevent the race of incoming work during teardown Add an atomic variable 'stopping' as flag in struct ceph_messenger, set this flag to 1 in function ceph_destroy_client(), and add the condition code in function ceph_data_ready() to test the flag value, if true(1), just return. Signed-off-by: Guanjun He Reviewed-by: Sage Weil --- Reading git-diff-tree failed