ceph: allow connection to be reopened by fault callback
authorSage Weil <sage@newdream.net>
Wed, 17 Feb 2010 06:01:03 +0000 (22:01 -0800)
committerSage Weil <sage@newdream.net>
Wed, 17 Feb 2010 06:01:03 +0000 (22:01 -0800)
commite2663ab60de59d20fa33da3528f6d5359f8eb003
treef167aba83280b6767e1f9bdf2e67e4ac48a85c68
parent153a008bf7915ea9127341409170cb197d111282
ceph: allow connection to be reopened by fault callback

Fix the messenger to allow a ceph_con_open() during the fault callback.
Previously the work wasn't getting queued on the connection because the
fault path avoids requeued work (normally spurious).  Loop on reopening by
checking for the OPENING state bit.

This fixes OSD reconnects when a TCP connection drops.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/messenger.c