Re: [PATCH] block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern

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

 



On 2/16/22 09:05, Christoph Hellwig wrote:
> On Wed, Feb 16, 2022 at 09:12:21AM +0000, Chaitanya Kulkarni wrote:
>> but blk_rq_map_kern() does accept gfp_mask for exactly this same case
>> and that is passed on to the bio_copy_kern() unless I'm wrong here,
>> so you need to pass the __GFP_ZERO flag in the step 3 above
>> (sg_scsi_ioctl) and not force zzeroed allocation the generic API..
> 
> We only want the zeroing for the payload, and other callers have the
> same issue, so I think this patch is the right thing to do.
> 

okay, in that case looks good...

Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>






[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