From: axboe@kernel.dk (Jens Axboe) Date: Thu, 21 Jun 2018 09:04:14 -0600 Subject: [PATCH] nvme: use __GFP_NOWARN for iod allocation In-Reply-To: <20180621150139.GA22804@infradead.org> References: <4cb394ca-7032-ea67-5bb1-ef331e42ace2@kernel.dk> <20180620204310.GA24840@localhost.localdomain> <34e64832-c345-3a70-401f-1915b5bb4af1@kernel.dk> <20180620223035.GA25196@localhost.localdomain> <7b6f885f-f605-1bfd-7a7e-2fce8cbde6c2@kernel.dk> <20180621071056.GB21304@infradead.org> <20180621150139.GA22804@infradead.org> Message-ID: On 6/21/18 9:01 AM, Christoph Hellwig wrote: > On Thu, Jun 21, 2018@08:47:34AM -0600, Jens Axboe wrote: >> On 6/21/18 1:10 AM, Christoph Hellwig wrote: >>> On Wed, Jun 20, 2018@04:30:18PM -0600, Jens Axboe wrote: >>>> If the fabrics folks have concerns, we could make it dependent on >>>> it being a pci device. That's the case I care about anyway, and the >>>> one that's currently breaking for me. >>> >>> Fabrics uses the SG chain allocator that SCSI also uses, so it >>> should already be fine, including for larger I/O sizes. >> >> I'll change it to ignore it for fabrics. What's the best way to >> check? ctrl->sqsize? > > ctrl->ops->flags & NVME_F_FABRICS > > but in the end we probably want a separate flag, as that is an > implementation detail, and not because these are fabrics drivers. Probably fine for now with a comment, since it is pretty tightly coupled to the fact that we prefer larger commands on fabrics, and don't care so much about that for a local controller. For now the check is moot though, since we are doing the same allocations... > I'll be spending the rest of the day on phone calls, so it'll take > some time to do more on this than writing some email, but I'll try > to find some time to look into these issues. OK sounds good, would be nice to get this hashed out as I think some variant of this should go into 4.18. -- Jens Axboe