aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_nl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
index 133e9b37c6c2..23670d81ec32 100644
--- a/drivers/block/drbd/drbd_nl.c
+++ b/drivers/block/drbd/drbd_nl.c
@@ -661,11 +661,11 @@ drbd_set_role(struct drbd_device *const device, enum drbd_role new_role, int for
661 put_ldev(device); 661 put_ldev(device);
662 } 662 }
663 } else { 663 } else {
664 /* Called from drbd_adm_set_role only. 664 mutex_lock(&device->resource->conf_update);
665 * We are still holding the conf_update mutex. */
666 nc = connection->net_conf; 665 nc = connection->net_conf;
667 if (nc) 666 if (nc)
668 nc->discard_my_data = 0; /* without copy; single bit op is atomic */ 667 nc->discard_my_data = 0; /* without copy; single bit op is atomic */
668 mutex_unlock(&device->resource->conf_update);
669 669
670 set_disk_ro(device->vdisk, false); 670 set_disk_ro(device->vdisk, false);
671 if (get_ldev(device)) { 671 if (get_ldev(device)) {