Re: [PATCH] target: pscsi: avoid OOM in pscsi_map_sg()

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

 



On Tue, 2021-03-23 at 18:07 +0000, Chaitanya Kulkarni wrote:
> Martin,
> 
> On 3/23/21 09:23, mwilck@xxxxxxxx wrote:
> > From: Martin Wilck <mwilck@xxxxxxxx>
> > 
> > pscsi_map_sg() uses the variable nr_pages as a hint for
> > bio_kmalloc()
> > how many vector elements to allocate. If nr_pages is <
> > BIO_MAX_PAGES,
> > it will be reset to 0 after successful allocation of the bio.
> 
> I think BIO_MAX_PAGES is replaced by BIO_MAX_VECS with
> commit a8affc03a9b3 ("block: rename BIO_MAX_PAGES to BIO_MAX_VECS").

Right. I made my patch against mkp/queue, which doesn't include this
commit yet. As this is just in the description, I don't think it
matters much, does it?

Martin





[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux