]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:57 +0000 (18:15 -0700)
commit5ce30e9c9f61f201a15e40cfd4a75a8e6046fbf5
tree4ffe59cd04d00fe0835256065b5b08a7c5505d1b
parent80ef1cecaf730e92ec17fdae791b4120cbfaeb57
libceph: move ceph_con_send() closed check under the con mutex

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>
net/ceph/messenger.c