summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_worker.c
diff options
context:
space:
mode:
authorLars Ellenberg2015-02-19 13:54:11 +0100
committerJens Axboe2015-11-25 17:22:01 +0100
commit84d34f2f0724f26de04f9863704a7ca797c0fd62 (patch)
tree961e7a09864db042799cd8a499a28178f6cdb684 /drivers/block/drbd/drbd_worker.c
parentdrbd: drbd_panic_after_delayed_completion_of_aborted_request() (diff)
downloadkernel-qcow2-linux-84d34f2f0724f26de04f9863704a7ca797c0fd62.tar.gz
kernel-qcow2-linux-84d34f2f0724f26de04f9863704a7ca797c0fd62.tar.xz
kernel-qcow2-linux-84d34f2f0724f26de04f9863704a7ca797c0fd62.zip
drbd: improve network timeout detection
Don't blame the peer for being unresponsive, if we did not even ask the question yet. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r--drivers/block/drbd/drbd_worker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index 9c89ebe21c6b..8bbabe37ef0d 100644
--- a/drivers/block/drbd/drbd_worker.c
+++ b/drivers/block/drbd/drbd_worker.c
@@ -1290,6 +1290,7 @@ static int drbd_send_barrier(struct drbd_connection *connection)
p->barrier = connection->send.current_epoch_nr;
p->pad = 0;
connection->send.current_epoch_writes = 0;
+ connection->send.last_sent_barrier_jif = jiffies;
return conn_send_command(connection, sock, P_BARRIER, sizeof(*p), NULL, 0);
}
@@ -1314,6 +1315,7 @@ static void re_init_if_first_write(struct drbd_connection *connection, unsigned
connection->send.seen_any_write_yet = true;
connection->send.current_epoch_nr = epoch;
connection->send.current_epoch_writes = 0;
+ connection->send.last_sent_barrier_jif = jiffies;
}
}