diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-07-08 01:19:44 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:46:47 +0100 |
commit | 6bbf53ca6269353c1d8174678b15aa4288a9cdb0 (patch) | |
tree | 0853697b0875051683d35b828e298a8e27f3293f /drivers/block/drbd/drbd_nl.c | |
parent | drbd: Move conf_mutex from connection to resource (diff) | |
download | linux-6bbf53ca6269353c1d8174678b15aa4288a9cdb0.tar.xz linux-6bbf53ca6269353c1d8174678b15aa4288a9cdb0.zip |
drbd: Move susp, susp_nod, susp_fen from connection to resource
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_nl.c')
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index 684be38932e3..5ed169d6cf5a 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c @@ -1665,8 +1665,7 @@ int drbd_adm_attach(struct sk_buff *skb, struct genl_info *info) clear_bit(CRASHED_PRIMARY, &device->flags); if (drbd_md_test_flag(device->ldev, MDF_PRIMARY_IND) && - !(device->state.role == R_PRIMARY && - first_peer_device(device)->connection->susp_nod)) + !(device->state.role == R_PRIMARY && device->resource->susp_nod)) set_bit(CRASHED_PRIMARY, &device->flags); device->send_cnt = 0; |