Messages in this thread | | | Subject | Re: [PATCH 2/2 v3] nbd: fix possible page fault for nbd disk | From | Xiubo Li <> | Date | Fri, 30 Aug 2019 13:22:31 +0800 |
| |
On 2019/8/30 8:58, Xiubo Li wrote: > On 2019/8/30 7:49, Mike Christie wrote: >> On 08/22/2019 02:59 AM, xiubli@redhat.com wrote: [...] >> >>> + test_bit(NBD_DISCONNECT_REQUESTED, &nbd->flags)) { >>> + mutex_unlock(&nbd_index_mutex); >>> + >>> + /* Wait untill the recv_work exit */ >> If that is all you need we could do a flush_workqueue(nbd->recv_workq) >> (you would need Jens's for next branch which has some work queue changes >> in nbd). > > Yeah, this makes sense.
This has already been done in nbd_disconnect_and_put() in the Jen's for next branch code. So here it will make no sense.
I will rebase this patch set to that branch.
Thanks. BRs Xiubo
| |