Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp382077pxb; Mon, 13 Sep 2021 22:42:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl+lSQ3bzSAMRFNTaQJ0Cva4cRwc7/4X4pzXOTVtjn2pL+fk52j5BCxHFiMVIfyqaQI0sp X-Received: by 2002:a05:6402:2908:: with SMTP id ee8mr15117156edb.33.1631598159124; Mon, 13 Sep 2021 22:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631598159; cv=none; d=google.com; s=arc-20160816; b=o25TOU0gk5Z9USTd8iypdHMiMhBkxyEZTZEoECQkv4UHfBMqUDkkDZuwhnDK4UHhkN kyI64n6+E+xl2Z0yXf3rDriiP9UwLWG6l6Pe+4lxJsS0aRWACqhz6kUc52muhryMJTrm pO9ePZ8c4DMgLGxkJqSw0PfpEpiHJpZMBajQZvPUtd1dcVipwXYk6xxwDwnUmcp+xtsC p5YeSVNAsiIdUZJ6ij3ly5XYPVLKSybMuuFFfNymGIYJcBDWZYV+xpnogfJUbIs7cz2d 53Ek0rWtY2N70OUq9+HeiWtVkj9nRGrDBqEFNf3njAeN9Vd5rn1haxiWA9rF98ZOJL1x I/PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=eb31X9wNyWIMw+VBDs7ourfgf+3cN+Xonthf0PtZNlY=; b=EUXjxIj5PwoMmPdcxE+iJsG88epGtw2X5gFl8t8VSLVZhn64B5jCTnnbjqrBeU0TNv UXm/zb4ffasjD16u1m7Tlew28GCXiimCPGhTpNYBTfcl/dpn9hsxYcie/faU6+dY9Zeh FWsSVE3l0MQORtA0do7RuN9o1+5H8a1ohmy3HexDiavo7Qp/ehFD4gxY1NprXAfhAxIg YVy+IErTQpERWAhgnrlN8mfHTsnRT5iqD0QY//wAKI9ca+voyaGL/y+z9hOtqWNHx/Q3 8hw+UsevsPnfkWnCAXeEB8QKaMMJ98tTuR40x8qBYcb87vTAesJzadl9b3NWtNFv93fu klEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=FfxMinIy; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si9060118ejo.331.2021.09.13.22.42.15; Mon, 13 Sep 2021 22:42:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=FfxMinIy; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239689AbhINFjv (ORCPT + 99 others); Tue, 14 Sep 2021 01:39:51 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:33606 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239634AbhINFju (ORCPT ); Tue, 14 Sep 2021 01:39:50 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C30D21FDCA; Tue, 14 Sep 2021 05:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1631597912; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eb31X9wNyWIMw+VBDs7ourfgf+3cN+Xonthf0PtZNlY=; b=FfxMinIyIoEC3F5QnwWW8bypmkxglnPteCO1RTKRq5acj2XNp9n+/CD0b+i+A2JrE9igFo i6C+D7j2j2PbLCh8wl9cOEsIsrGTGaG8AY3pArqk3ft5LxKnrHahN2ewbUAklqgT+OdaGi 2wNoNhp5WjHQe2wcRZDk+Hf3aicyksQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1631597912; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eb31X9wNyWIMw+VBDs7ourfgf+3cN+Xonthf0PtZNlY=; b=XjrYn6izxG2I/DmE78PtEGYb5HVILBpEXbrWwG+MbZh9/vS2J9Lg91Qm5HRbS1ya4MUQOi pXF3DyeDC6HvKDDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 46F8F13E4A; Tue, 14 Sep 2021 05:38:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gUgrDlg1QGHzTwAAMHmgww (envelope-from ); Tue, 14 Sep 2021 05:38:32 +0000 Subject: Re: [PATCH RESEND v3 04/13] blk-mq: Invert check in blk_mq_update_nr_requests() To: John Garry , axboe@kernel.dk Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, ming.lei@redhat.com, linux-scsi@vger.kernel.org References: <1631545950-56586-1-git-send-email-john.garry@huawei.com> <1631545950-56586-5-git-send-email-john.garry@huawei.com> From: Hannes Reinecke Message-ID: Date: Tue, 14 Sep 2021 07:38:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1631545950-56586-5-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/13/21 5:12 PM, John Garry wrote: > It's easier to read: > > if (x) > X; > else > Y; > > over: > > if (!x) > Y; > else > X; > > No functional change intended. > > Signed-off-by: John Garry > Reviewed-by: Ming Lei > --- > block/blk-mq.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer