|
@@ -923,6 +923,8 @@ static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg)
|
|
mutex_unlock(&nsock->tx_lock);
|
|
mutex_unlock(&nsock->tx_lock);
|
|
sockfd_put(old);
|
|
sockfd_put(old);
|
|
|
|
|
|
|
|
+ clear_bit(NBD_DISCONNECTED, &config->runtime_flags);
|
|
|
|
+
|
|
/* We take the tx_mutex in an error path in the recv_work, so we
|
|
/* We take the tx_mutex in an error path in the recv_work, so we
|
|
* need to queue_work outside of the tx_mutex.
|
|
* need to queue_work outside of the tx_mutex.
|
|
*/
|
|
*/
|