Re: [PATCH V3 5/8] block: merge submit_bio_checks() into submit_bio_noacct

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

 



> +	if (!blk_throtl_bio(bio)) {
> +		blk_cgroup_bio_start(bio);
> +		blkcg_bio_issue_init(bio);
> +
> +		if (!bio_flagged(bio, BIO_TRACE_COMPLETION)) {
> +			trace_block_bio_queue(bio);
> +			/* Now that enqueuing has been traced, we need to
> +			 * trace completion as well.
> +			 */
> +			bio_set_flag(bio, BIO_TRACE_COMPLETION);
> +		}
> +
> +		__submit_bio_noacct_nocheck(bio);

I much prefered the early return in the old code as it clearly
document the flow.

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>



[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