diff options
Diffstat (limited to 'net/ceph/messenger.c')
-rw-r--r-- | net/ceph/messenger.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index d5718284db57..3661cdd927f1 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c | |||
@@ -3206,9 +3206,10 @@ void ceph_con_keepalive(struct ceph_connection *con) | |||
3206 | dout("con_keepalive %p\n", con); | 3206 | dout("con_keepalive %p\n", con); |
3207 | mutex_lock(&con->mutex); | 3207 | mutex_lock(&con->mutex); |
3208 | clear_standby(con); | 3208 | clear_standby(con); |
3209 | con_flag_set(con, CON_FLAG_KEEPALIVE_PENDING); | ||
3209 | mutex_unlock(&con->mutex); | 3210 | mutex_unlock(&con->mutex); |
3210 | if (con_flag_test_and_set(con, CON_FLAG_KEEPALIVE_PENDING) == 0 && | 3211 | |
3211 | con_flag_test_and_set(con, CON_FLAG_WRITE_PENDING) == 0) | 3212 | if (con_flag_test_and_set(con, CON_FLAG_WRITE_PENDING) == 0) |
3212 | queue_con(con); | 3213 | queue_con(con); |
3213 | } | 3214 | } |
3214 | EXPORT_SYMBOL(ceph_con_keepalive); | 3215 | EXPORT_SYMBOL(ceph_con_keepalive); |