[PATCH] blk-mq: don't allocate requests when all cpus in a hctx are offline
Ming Lei
ming.lei at redhat.com
Wed Jun 30 03:13:49 PDT 2021
On Wed, Jun 30, 2021 at 12:03:42PM +0200, Hannes Reinecke wrote:
> When all CPUs in a hctx are offline in blk_mq_alloc_request_hctx() we should
> not try to allocate the request, as we'll fail later on in blk_mq_get_tag() anyway.
>
> Signed-off-by: Hannes Reinecke <hare at suse.de>
> ---
Please see my yesterday's reply why this way isn't good:
https://lore.kernel.org/lkml/YNrwnWfsxf8cJcoe@T590/
https://lore.kernel.org/lkml/YNrhXFgv%2FgEWbhbl@T590/
Thanks,
Ming
More information about the Linux-nvme
mailing list