]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commita59b55a602b6c741052d79c1e3643f8440cddd27
tree4ffe59cd04d00fe0835256065b5b08a7c5505d1b
parent00650931e52e97fe64096bec167f5a6780dfd94a
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