Commit 792c3fdd authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Jens Axboe

drbd: must not use connection after kref_put(&connection->kref)

Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d29e89e3
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment