Message ID | cover.1667358114.git.nickyc975@zju.edu.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3361361wru; Tue, 1 Nov 2022 20:08:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6E0gwXKPkZtzH93hSVL539RsptPMpFQiJdMNfmYlCYwj03hHBnPD1CK3n7vdg8XDjA/+mx X-Received: by 2002:a17:902:748c:b0:186:6a25:b6a8 with SMTP id h12-20020a170902748c00b001866a25b6a8mr21927438pll.40.1667358529560; Tue, 01 Nov 2022 20:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667358529; cv=none; d=google.com; s=arc-20160816; b=i/vQF/M21Dnxu0pLEVPwT/f+RhQfPFD/tmp72c3NuMMfNjTZhS+atJ4VzIOUh7B8Tk nu4vF867FVYWYX8Ih2lpAzPfY5oHdnfxkeHLStQUtvBuHNnc3D04PpRGWxQF3aTAjgV4 LRnFMGbTyw3MtEj/7g/DzSnmqiEw60h0TmEXQguB2dK6OMPK3ZvpbVcdOsMl26lLOGZF mHy13UpxcXldZNVRC6t2IKpdlYHeHco76M+CN84iedHhFELcf0aIpzd6UDWs5TmXG7CH Dhr6cFAOeOksETYLLDJx8cNMHsuR86WiNyKahaHYGJYn/rNFKldqzHHOLqW4RaOmRCE2 s0gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4QZ31ldRwev19KvcxSqL73pZ86tDC+yQGausMjlnLbY=; b=kzgc9x/1YcX7its7uQVMJ2MDoEF4brFOtYKtKsMiLOlTliQLeRVGii1xM+1LDw5CNI AbRMIgshOa7hmTc0CxAEbT4B/IR7oiVRRr+YR+O5FvLAgV5kSV2gu3sky3ZFO0JhhGFm iEfvZepDL41diRe8Lt09U84UfeqgIj8A/PT5fRoTYLW9/qkhusgqbvcUwAoDzT7aL28s eHVSPIVOCkllGnSkt3ynbxbGITcoI+fHjUU7k29Z65XI2Jd00Degt2/qi+aomtIyk5ic HqYtx+3t6gunQjzFR1tfzBfOoRYIpo9msli/QO4BBAczev5pHpLsmskp+KdDm6jOoJp1 Rjig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t14-20020a17090340ce00b001869fc56c40si14650022pld.103.2022.11.01.20.08.37; Tue, 01 Nov 2022 20:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbiKBDGp (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Tue, 1 Nov 2022 23:06:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbiKBDGW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 23:06:22 -0400 Received: from zju.edu.cn (mail.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 595AE23E84; Tue, 1 Nov 2022 20:06:20 -0700 (PDT) Received: from localhost.localdomain (unknown [10.14.30.251]) by mail-app2 (Coremail) with SMTP id by_KCgA3PSGf3mFjz_9cBw--.7456S2; Wed, 02 Nov 2022 11:06:14 +0800 (CST) From: Jinlong Chen <nickyc975@zju.edu.cn> To: axboe@kernel.dk Cc: hch@lst.de, chaitanyak@nvidia.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, nickyc975@zju.edu.cn Subject: [PATCH v3 0/2] some random cleanups for blk-mq.c Date: Wed, 2 Nov 2022 11:06:03 +0800 Message-Id: <cover.1667358114.git.nickyc975@zju.edu.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: by_KCgA3PSGf3mFjz_9cBw--.7456S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xry8WFWfCFy8XrWkZF43KFg_yoWxCFb_ua 4Fka4S9rWUJF1YkFW7Gr13J34ruFZ8XF15AF15t3y3Jr97Jr48Xr4agw45Xr1DuFWkAF4x JF1UZrWfJF1qvjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbIkFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AK wVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20x vE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26rxl6s0DM28EF7xvwVC2z280 aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2vYz4IE04k24VAvwV AKI4IrM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxAIw28IcxkI7VAK I48JMxAIw28IcVCjz48v1sIEY20_GFWkJr1UJwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s 026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_ JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20x vEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE 14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf 9x0JUQZ23UUUUU= X-CM-SenderInfo: qssqjiaqqzq6lmxovvfxof0/1tbiAgoCB1ZdtcNVXAAKsz X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748308741754090048?= X-GMAIL-MSGID: =?utf-8?q?1748352137766323539?= |
Series |
some random cleanups for blk-mq.c
|
|
Message
Jinlong Chen
Nov. 2, 2022, 3:06 a.m. UTC
Patch 1 improves the error handling blk_mq_alloc_rq_map(). Patch 2 improves readability of blk_mq_alloc_cached_request(). Changes in v3: - add Reviewed-by: tag from Christoph Changes in v2: - drop wrong and worthless patches, suggested by Christoph, Jens and Chaitanya - remove silly goto-return-NULL in patch 1 (patch 2 originally), suggested by Christoph and Jens Jinlong Chen (2): blk-mq: improve error handling in blk_mq_alloc_rq_map() blk-mq: use if-else instead of goto in blk_mq_alloc_cached_request() block/blk-mq.c | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-)