[PATCH] nvme-loop: set blocking flag

Christoph Hellwig hch at lst.de
Tue Oct 22 00:02:52 PDT 2024


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.

Do we have a good test case for commit 505363957fad ?

> 
---end quoted text---



More information about the Linux-nvme mailing list