Re: [PATCH] blk-mq: centralise related handling into blk_mq_get_driver_tag

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

 



On 08/07/2020 23:06, Ming Lei wrote:
On Wed, Jul 08, 2020 at 03:07:05PM +0100, John Garry wrote:
On 07/07/2020 08:16, Ming Lei wrote:
On Tue, Jul 07, 2020 at 07:37:41AM +0100, John Garry wrote:
On 06/07/2020 15:41, Ming Lei wrote:
-	hctx = flush_rq->mq_hctx;
    	if (!q->elevator) {

Is there a specific reason we do:

if (!a)
	do x
else
	do y

as opposed to:

if (a)
	do y
else
	do x

Do people find this easier to read or more obvious? Just wondering.

If you like the style, please go ahead to switch to this way.


Maybe I will, but I'll try to hunt down more cases first.

You are reviewing existed context code instead of this patch!!!

One more time, please focus on change added by this patch.

ok, sorry, I'll stop hijacking your patch threads




[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