]> git.ipfire.org Git - people/arne_f/kernel.git/commit
libceph: protect ceph_con_open() with mutex
authorSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 23:21:40 +0000 (16:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:39 +0000 (11:38 -0800)
commiteea8ed97626254429d4679c567035effdf9983a8
treea3697630e0c1136abfb4d2f4fe694a3c79151b67
parent175c4c20d29322b9e882c052025e72644ca00e2d
libceph: protect ceph_con_open() with mutex

(cherry picked from commit 5469155f2bc83bb2c88b0a0370c3d54d87eed06e)

Take the con mutex while we are initiating a ceph open.  This is necessary
because the may have previously been in use and then closed, which could
result in a racing workqueue running con_work().

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c