|
@@ -1768,6 +1768,7 @@ static int nbd_genl_disconnect(struct sk_buff *skb, struct genl_info *info)
|
|
}
|
|
}
|
|
mutex_lock(&nbd->config_lock);
|
|
mutex_lock(&nbd->config_lock);
|
|
nbd_disconnect(nbd);
|
|
nbd_disconnect(nbd);
|
|
|
|
+ nbd_clear_sock(nbd);
|
|
mutex_unlock(&nbd->config_lock);
|
|
mutex_unlock(&nbd->config_lock);
|
|
if (test_and_clear_bit(NBD_HAS_CONFIG_REF,
|
|
if (test_and_clear_bit(NBD_HAS_CONFIG_REF,
|
|
&nbd->config->runtime_flags))
|
|
&nbd->config->runtime_flags))
|