[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fe964fbe-64fe-5bf3-25e9-9e76175d7eba@redhat.com>
Date: Fri, 30 Aug 2019 13:22:31 +0800
From: Xiubo Li <xiubli@...hat.com>
To: Mike Christie <mchristi@...hat.com>, josef@...icpanda.com,
axboe@...nel.dk
Cc: linux-block@...r.kernel.org, nbd@...er.debian.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2 v3] nbd: fix possible page fault for nbd disk
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@...hat.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
Powered by blists - more mailing lists