mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
fs: dlm: don't check othercon twice
This patch removes an another check if con->othercon set inside the branch which already does that. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
cbba21169e
commit
f8bce79d9d
|
|
@ -1497,8 +1497,7 @@ int dlm_lowcomms_close(int nodeid)
|
|||
call_srcu(&connections_srcu, &con->rcu, connection_release);
|
||||
if (con->othercon) {
|
||||
clean_one_writequeue(con->othercon);
|
||||
if (con->othercon)
|
||||
call_srcu(&connections_srcu, &con->othercon->rcu, connection_release);
|
||||
call_srcu(&connections_srcu, &con->othercon->rcu, connection_release);
|
||||
}
|
||||
srcu_read_unlock(&connections_srcu, idx);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user