Re: [PATCH 2/9] block: add scatterlist-less DMA mapping helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 12, 2025 at 12:05:18PM +0530, Kanchan Joshi wrote:
> On 6/10/2025 10:36 AM, Christoph Hellwig wrote:
> > +static bool blk_dma_map_bus(struct request *req, struct device *dma_dev,
> 
> Both are not used in the function body.

I'll fix it.

> > + */
> > +bool blk_rq_dma_map_iter_start(struct request *req, struct device *dma_dev,
> > +		struct dma_iova_state *state, struct blk_dma_iter *iter)
> > +{
> > +	unsigned int total_len = blk_rq_payload_bytes(req);
> > +	struct phys_vec vec;
> > +
> > +	iter->iter.bio = req->bio;
> > +	iter->iter.iter = req->bio->bi_iter;
> > +	memset(&iter->p2pdma, 0, sizeof(iter->p2pdma));
> Should this (or maybe p2pdma field itself) be compiled out using 
> CONFIG_PCI_P2PDMA.

We could, but is it really worth the effort?




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux