[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d8e43495-0959-2b47-b0af-be46d7ad57ea@kernel.dk>
Date: Sat, 17 Sep 2022 10:50:26 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Liu Song <liusong@...ux.alibaba.com>, kbusch@...nel.org,
axboe@...com, hch@....de, sagi@...mberg.me
Cc: linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] nvme: request remote is usually not involved for nvme
devices
On 9/17/22 10:40 AM, Liu Song wrote:
> From: Liu Song <liusong@...ux.alibaba.com>
>
> NVMe devices usually have a 1:1 mapping between "ctx" and "hctx",
> so when "nr_ctx" is equal to 1, there is no possibility of remote
> request, so the corresponding process can be simplified.
If the worry is the call overhead of blk_mq_complete_request_remote(),
why don't we just make that available as an inline instead? That seems
vastly superior to providing a random shortcut in a driver to avoid
calling it.
--
Jens Axboe
Powered by blists - more mailing lists