drbd: receive_protocol(): Make the program flow less confusing
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
b792c35cfb
commit
fbc12f4514
|
@ -3083,10 +3083,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi)
|
|||
|
||||
synchronize_rcu();
|
||||
kfree(old_net_conf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} else {
|
||||
clear_bit(CONN_DRY_RUN, &tconn->flags);
|
||||
|
||||
if (cf & CF_DRY_RUN)
|
||||
|
@ -3131,7 +3128,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi)
|
|||
}
|
||||
|
||||
rcu_read_unlock();
|
||||
|
||||
}
|
||||
return 0;
|
||||
|
||||
disconnect_rcu_unlock:
|
||||
|
|
Loading…
Reference in New Issue