diff options
Diffstat (limited to 'drivers/block/drbd/drbd_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index e08e99f756a5..791005e163db 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -1058,7 +1058,7 @@ randomize: | |||
1058 | clear_bit(DISCARD_MY_DATA, &device->flags); | 1058 | clear_bit(DISCARD_MY_DATA, &device->flags); |
1059 | 1059 | ||
1060 | drbd_connected(device); | 1060 | drbd_connected(device); |
1061 | kref_put(&device->kref, &drbd_minor_destroy); | 1061 | kref_put(&device->kref, drbd_destroy_device); |
1062 | rcu_read_lock(); | 1062 | rcu_read_lock(); |
1063 | } | 1063 | } |
1064 | rcu_read_unlock(); | 1064 | rcu_read_unlock(); |
@@ -1166,7 +1166,7 @@ static void drbd_flush(struct drbd_connection *connection) | |||
1166 | drbd_bump_write_ordering(connection, WO_drain_io); | 1166 | drbd_bump_write_ordering(connection, WO_drain_io); |
1167 | } | 1167 | } |
1168 | put_ldev(device); | 1168 | put_ldev(device); |
1169 | kref_put(&device->kref, &drbd_minor_destroy); | 1169 | kref_put(&device->kref, drbd_destroy_device); |
1170 | 1170 | ||
1171 | rcu_read_lock(); | 1171 | rcu_read_lock(); |
1172 | if (rv) | 1172 | if (rv) |
@@ -1409,7 +1409,7 @@ static void conn_wait_active_ee_empty(struct drbd_connection *connection) | |||
1409 | kref_get(&device->kref); | 1409 | kref_get(&device->kref); |
1410 | rcu_read_unlock(); | 1410 | rcu_read_unlock(); |
1411 | drbd_wait_ee_list_empty(device, &device->active_ee); | 1411 | drbd_wait_ee_list_empty(device, &device->active_ee); |
1412 | kref_put(&device->kref, &drbd_minor_destroy); | 1412 | kref_put(&device->kref, drbd_destroy_device); |
1413 | rcu_read_lock(); | 1413 | rcu_read_lock(); |
1414 | } | 1414 | } |
1415 | rcu_read_unlock(); | 1415 | rcu_read_unlock(); |
@@ -4459,7 +4459,7 @@ static void conn_disconnect(struct drbd_connection *connection) | |||
4459 | kref_get(&device->kref); | 4459 | kref_get(&device->kref); |
4460 | rcu_read_unlock(); | 4460 | rcu_read_unlock(); |
4461 | drbd_disconnected(device); | 4461 | drbd_disconnected(device); |
4462 | kref_put(&device->kref, &drbd_minor_destroy); | 4462 | kref_put(&device->kref, &drbd_destroy_device); |
4463 | rcu_read_lock(); | 4463 | rcu_read_lock(); |
4464 | } | 4464 | } |
4465 | rcu_read_unlock(); | 4465 | rcu_read_unlock(); |
@@ -5199,10 +5199,10 @@ static int connection_finish_peer_reqs(struct drbd_connection *connection) | |||
5199 | kref_get(&device->kref); | 5199 | kref_get(&device->kref); |
5200 | rcu_read_unlock(); | 5200 | rcu_read_unlock(); |
5201 | if (drbd_finish_peer_reqs(device)) { | 5201 | if (drbd_finish_peer_reqs(device)) { |
5202 | kref_put(&device->kref, &drbd_minor_destroy); | 5202 | kref_put(&device->kref, drbd_destroy_device); |
5203 | return 1; | 5203 | return 1; |
5204 | } | 5204 | } |
5205 | kref_put(&device->kref, &drbd_minor_destroy); | 5205 | kref_put(&device->kref, drbd_destroy_device); |
5206 | rcu_read_lock(); | 5206 | rcu_read_lock(); |
5207 | } | 5207 | } |
5208 | set_bit(SIGNAL_ASENDER, &connection->flags); | 5208 | set_bit(SIGNAL_ASENDER, &connection->flags); |