Skip to content

Commit

Permalink
drbd: conn_try_disconnect(): Use parameter instead of the global vari…
Browse files Browse the repository at this point in the history
…able

Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
  • Loading branch information
Andreas Gruenbacher authored and Philipp Reisner committed Feb 17, 2014
1 parent 4bc7604 commit 9693da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ static enum drbd_state_rv conn_try_disconnect(struct drbd_connection *connection
* The state handling only uses drbd_thread_stop_nowait(),
* we want to really wait here until the receiver is no more.
*/
drbd_thread_stop(&adm_ctx.connection->receiver);
drbd_thread_stop(&connection->receiver);

/* Race breaker. This additional state change request may be
* necessary, if this was a forced disconnect during a receiver
Expand Down

0 comments on commit 9693da2

Please sign in to comment.