rbd: let con_work() handle backoff
authorAlex Elder <elder@inktank.com>
Tue, 9 Oct 2012 03:37:30 +0000 (20:37 -0700)
committerAlex Elder <elder@inktank.com>
Wed, 10 Oct 2012 05:00:21 +0000 (22:00 -0700)
commit8618e30bc14b06bfafa0f164cca7b0e06451f88a
tree255279320cdbd2f82d48973d11183a2bdb929044
parent588377d6199034c36d335e7df5818b731fea072c
rbd: let con_work() handle backoff

Both ceph_fault() and con_work() include handling for imposing a
delay before doing further processing on a faulted connection.
The latter is used only if ceph_fault() is unable to.

Instead, just let con_work() always be responsible for implementing
the delay.  After setting up the delay value, set the BACKOFF flag
on the connection unconditionally and call queue_con() to ensure
con_work() will get called to handle it.

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