summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_worker.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-05-04 15:25:35 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:55:46 +0100
commitbb77d34ecc6fe6cdc3f4f0841a516695c2eacc04 (patch)
tree17700898cda727c8bbeac93e308ab5fae7a46cb8 /drivers/block/drbd/drbd_worker.c
parente544046ab842ab93c275a6fc4e043c1cb637076d (diff)
downloadlinux-bb77d34ecc6fe6cdc3f4f0841a516695c2eacc04.tar.gz
linux-bb77d34ecc6fe6cdc3f4f0841a516695c2eacc04.tar.bz2
linux-bb77d34ecc6fe6cdc3f4f0841a516695c2eacc04.zip
drbd: Turn no-tcp-cork into tcp-cork={yes|no}
Change the --no-tcp-cork drbdsetup command line option as well as the no_cork netlink packet. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r--drivers/block/drbd/drbd_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index e37c42d5dd6e..78c3de49eff6 100644
--- a/drivers/block/drbd/drbd_worker.c
+++ b/drivers/block/drbd/drbd_worker.c
@@ -1694,7 +1694,7 @@ int drbd_worker(struct drbd_thread *thi)
rcu_read_lock();
nc = rcu_dereference(tconn->net_conf);
- cork = nc ? !nc->no_cork : 0;
+ cork = nc ? nc->tcp_cork : 0;
rcu_read_unlock();
if (tconn->data.socket && cork)