mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
drbd: must not use connection after kref_put(&connection->kref)
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d29e89e349
commit
792c3fdd94
@ -2109,9 +2109,8 @@ static int w_after_conn_state_ch(struct drbd_work *w, int unused)
|
||||
spin_unlock_irq(&connection->resource->req_lock);
|
||||
}
|
||||
}
|
||||
kref_put(&connection->kref, drbd_destroy_connection);
|
||||
|
||||
conn_md_sync(connection);
|
||||
kref_put(&connection->kref, drbd_destroy_connection);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user