Re: [PATCH] blk-mq: fix is_flush_rq

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

 



On 8/17/21 6:09 PM, Ming Lei wrote:
> +bool is_flush_rq(struct request *rq)
> +{
> +	return rq->end_io == flush_end_io;
> +}

My understanding is that calling is_flush_rq() is only safe if the
caller guarantees that the request refcount >= 1. How about adding a
comment that explains this?

Thanks,

Bart.



[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