]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: socket can close in any connection state
authorAlex Elder <elder@inktank.com>
Sat, 8 Dec 2012 01:50:07 +0000 (19:50 -0600)
committerAlex Elder <elder@inktank.com>
Mon, 17 Dec 2012 18:07:32 +0000 (12:07 -0600)
commita4095cca1ea692f6304f871df5d745ad9438ead7
tree81a2f47b32640921f0f7ce90b93ef450b4ca599a
parent65a99b7711ee0bc4803196950bb0a837fd3888a6
libceph: socket can close in any connection state

A connection's socket can close for any reason, independent of the
state of the connection (and without irrespective of the connection
mutex).  As a result, the connectino can be in pretty much any state
at the time its socket is closed.

Handle those other cases at the top of con_work().  Pull this whole
block of code into a separate function to reduce the clutter.

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