[PATCH] nvme-loop: set blocking flag

Sagi Grimberg sagi at grimberg.me
Tue Oct 22 02:26:28 PDT 2024




On 22/10/2024 10:02, Christoph Hellwig wrote:
> On Tue, Oct 22, 2024 at 08:28:10AM +0200, Christoph Hellwig wrote:
>> On Mon, Oct 21, 2024 at 12:35:17AM +0300, Sagi Grimberg wrote:
>>>> Let me see what I can do.
>>> Note, the search is ONLY in the error case, i.e. when nsid is not found in
>>> subsys->namespaces.
>> Which kinda makes it worse as we use an unusual context just from
>> that rare error path.
> I just took a very quick look, and inserting the namespace into the
> xarray when created and only removing it when it is deleted, and
> instead checking an enabled flag during lookup should do the work.

Agreed.



More information about the Linux-nvme mailing list