[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a4ba2441-83eb-dde2-09ae-7c5f42ff6ad3@acm.org>
Date: Mon, 20 Dec 2021 09:10:14 -0800
From: Bart Van Assche <bvanassche@....org>
To: Xie Yongji <xieyongji@...edance.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] nbd: Don't use workqueue to handle recv work
On 12/20/21 04:22, Xie Yongji wrote:
> The rescuer thread might take over the works queued on
> the workqueue when the worker thread creation timed out.
> If this happens, we have no chance to create multiple
> recv threads which causes I/O hung on this nbd device.
>
> To fix it, this tries to create kthreads directly to
> handle the recv work instead of using workqueue.
Why a kthread instead of only removing the WQ_MEM_RECLAIM flag from the
alloc_workqueue() call? This should have been explained in the patch
description. Additionally, a Fixes: tag is missing.
Thanks,
Bart.
Powered by blists - more mailing lists