Re: [PATCH v3] blk-mq: check on cpu id when there is only one ctx mapping

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

 



This looks fine to me:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>
> -	if (rq->mq_hctx->nr_ctx == 1 ||
> +	if ((rq->mq_hctx->nr_ctx == 1 &&
> +	     rq->mq_ctx->cpu == raw_smp_processor_id()) ||
>  		rq->cmd_flags & REQ_POLLED)

But please fix the incorrct indentation in the existing code here
please while you're at it (maybe Jens can just fold it in):

	if ((rq->mq_hctx->nr_ctx == 1 &&
	     rq->mq_ctx->cpu == raw_smp_processor_id()) ||
 	    (rq->cmd_flags & REQ_POLLED))



[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