ntohs(con->peer_addr.ipaddr.sin_port));
if (!con->delay) {
- derr(1, "timeout not set\n");
+ derr(1, "ceph_send_fault timeout not set\n");
return;
}
list_splice_init(&con->out_sent, &con->out_queue);
spin_unlock(&con->out_queue_lock);
/* retry with delay */
- queue_delayed_work(send_wq, &con->swork,
- BASE_RETRY_INTERVAL);
+ queue_delayed_work(send_wq, &con->swork, con->delay);
break;
case -EPIPE:
case -ECONNREFUSED:
}
set_bit(NEW, &con->state);
/* retry with delay */
- queue_delayed_work(send_wq, &con->swork,
- BASE_RETRY_INTERVAL);
+ queue_delayed_work(send_wq, &con->swork, con->delay);
break;
case -EIO:
derr(1, "EIO set\n");
prepare_write_accept_reject(con);
else
prepare_write_accept_ready(con);
+ /* queue write */
+ queue_work(send_wq, &con->swork.work);
}