libceph: move ceph_con_send() closed check under the con mutex
authorSage Weil <sage@inktank.com>
Fri, 20 Jul 2012 22:34:04 +0000 (15:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:40 +0000 (11:38 -0800)
commit5d0f354b3183d005024d43b567335701d928995a
treeafbed7bedca43cb872c092dcfe84d94c0d8ccc46
parent67c6fc1932a705f61f98d8092375622b8dffea6a
libceph: move ceph_con_send() closed check under the con mutex

(cherry picked from commit a59b55a602b6c741052d79c1e3643f8440cddd27)

Take the con mutex before checking whether the connection is closed to
avoid racing with someone else closing it.

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c