On 2019/8/30 7:49, Mike Christie wrote:[...]
On 08/22/2019 02:59 AM, xiubli@xxxxxxxxxx wrote:
+ test_bit(NBD_DISCONNECT_REQUESTED, &nbd->flags)) {If that is all you need we could do a flush_workqueue(nbd->recv_workq)
+ mutex_unlock(&nbd_index_mutex);
+
+ /* Wait untill the recv_work exit */
(you would need Jens's for next branch which has some work queue changes
in nbd).
Yeah, this makes sense.