Re: [bug report] block: remove the write_hint field from struct request

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

 



On Thu, Nov 14, 2024 at 12:04:03PM +0300, Dan Carpenter wrote:
>    994		if (!blk_cgroup_mergeable(rq, bio))
>                                           ^^
> This dereferences rq->bio->
> 
>    995			return false;
>    996	
>    997		/* only merge integrity protected bio into ditto rq */
>    998		if (blk_integrity_merge_bio(rq->q, rq, bio) == false)
>    999			return false;
>   1000	
>   1001		/* Only merge if the crypt contexts are compatible */
>   1002		if (!bio_crypt_rq_ctx_compatible(rq, bio))
>   1003			return false;
>   1004	
>   1005		if (rq->bio) {
>                     ^^^^^^^
> So this check shouldn't be required.

Hmm.  The only requests without bios are flush and passthrough
requests.  I guess we make sure they never end up here even if
it is not entirely obvious from the code.





[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