Skip to content

Commit 8e9c523

Browse files
Dan Carpenteraxboe
authored andcommitted
block: drbd: remove a stray unlock in __drbd_send_protocol()
There are two callers of this function and they both unlock the mutex so this ends up being a double unlock. Fixes: 44ed167 ("drbd: rcu_read_lock() and rcu_dereference() for tconn->net_conf") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b081436 commit 8e9c523

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/block/drbd/drbd_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,6 @@ int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cm
786786

787787
if (nc->tentative && connection->agreed_pro_version < 92) {
788788
rcu_read_unlock();
789-
mutex_unlock(&sock->mutex);
790789
drbd_err(connection, "--dry-run is not supported by peer");
791790
return -EOPNOTSUPP;
792791
}

0 commit comments

Comments
 (0)