]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix mutex coverage for ceph_con_close
authorSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 23:24:37 +0000 (16:24 -0700)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:30 +0000 (18:15 -0700)
commit35bf11b5b346eea5ce862e27f2890adbd7761928
tree875162b047de3e18de801e1e6152f6d8f4810652
parent5c9828bf08eb9c3fa1c91dda4e75c3b89b7d7c5f
libceph: fix mutex coverage for ceph_con_close

Hold the mutex while twiddling all of the state bits to avoid possible
races.  While we're here, make not of why we cannot close the socket
directly.

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