Message ID | cover.1667314759.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 l7csp3045549wru; Tue, 1 Nov 2022 08:39:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+VAPL5VzYWUghZdmnIZxr3l1A9SJ1fKdeii1BrRT+sq6tmy9qSl26bEm15fsJFZ7N4feZ X-Received: by 2002:a17:907:7e95:b0:78d:e9cf:82c7 with SMTP id qb21-20020a1709077e9500b0078de9cf82c7mr19748739ejc.724.1667317144321; Tue, 01 Nov 2022 08:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667317144; cv=none; d=google.com; s=arc-20160816; b=trj5eKT2eg5rejCaYqlTC/IcCOfiE8c6/f/22iDs0wUxkgIFQryqIG9aV6YpN0d1Sy TcWl27IuRKouNEI+ggSRTpzjgL/7TnVlBfAd73NlfZXYABAU0HDTNqFUA6ZHEgXy58+e CfJuOsWziy67z1Q0CUModUHlmw2/QtLpbY++pDQjJ8B7bVH4KQV2nymr9ZFdS8X1Ur+N cuoEdmELDIpKgMjoGzgFa73JHbJEErOTYSl86l1fm0QN84rpGYYhqXlrzQg1zvC5OT9T Ctjt5KQ+a/mB7dXyDtpv4Gv7Z+/zmQPcUkOh0+5o3OrSwXfHhBWY3ui9CIeZpZzU820M kAeg== 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=mx5VTKcm/ah3XKq84uSRl7B3wrv83o/XB6hRh33QJqs=; b=STKMKpCHcr/z2KX1bgzhw64ckeN59yGK+r6rnsBTgsqD11p93orwiTzbVUBE4foMlT wRy69q7sdBm+TSSKVka3FEmxsjqP2tVP8r8/22yqsZ0u9dcTx4B15zsjp15dV2MX17PL 0ufAPW5EJNxWeBcXEAGqWCcRWvDmKvHD5I4JFKKtMzO735T23GPsNY1/A0obwE3taJzN PVKk23NRNpD43RaStlzTqf4byHHc2CeD9ZIW2vWjxQvTRPAB/J9hUF6LbWVBv/MeGlfQ 4bqADjCaQBhEMdQBE9TWRwajaYIlMWOPqHGAuNG5c9sJ+W9uyuqotmjWB5b/xj9K0Edy 7vIw== 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 qb30-20020a1709077e9e00b0078db5170767si13420143ejc.18.2022.11.01.08.38.40; Tue, 01 Nov 2022 08:39:04 -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 S231536AbiKAPP0 (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 1 Nov 2022 11:15:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231517AbiKAPPG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 11:15:06 -0400 Received: from zju.edu.cn (mail.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 440EF1BE89; Tue, 1 Nov 2022 08:12:04 -0700 (PDT) Received: from localhost.localdomain (unknown [10.14.30.251]) by mail-app4 (Coremail) with SMTP id cS_KCgCH_k0qN2FjsHmtBw--.39315S2; Tue, 01 Nov 2022 23:11:59 +0800 (CST) From: Jinlong Chen <nickyc975@zju.edu.cn> To: axboe@kernel.dk Cc: hch@lst.de, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, nickyc975@zju.edu.cn Subject: [PATCH 0/4] some random cleanups for blk-mq.c Date: Tue, 1 Nov 2022 23:11:33 +0800 Message-Id: <cover.1667314759.git.nickyc975@zju.edu.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cS_KCgCH_k0qN2FjsHmtBw--.39315S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYV7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAac4AC62xK8xCEY4vEwIxC4wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IE rcIFxwCF04k20xvY0x0EwIxGrwCF04k20xvE74AGY7Cv6cx26r4fKr1UJr1l4I8I3I0E4I kC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWU WwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr 0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWU JVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYx BIdaVFxhVjvjDU0xZFpf9x0JUQZ23UUUUU= X-CM-SenderInfo: qssqjiaqqzq6lmxovvfxof0/1tbiAgIAB1ZdtcLuXwAEsO 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?1748308741754090048?= |
Series | some random cleanups for blk-mq.c | |
Message
Jinlong Chen
Nov. 1, 2022, 3:11 p.m. UTC
Patch 1 updates the outdated comment of blk_mq_quiesce_queue_nowait(). Patch 2 improves the error handling blk_mq_alloc_rq_map(). Patch 3 and 4 improve readability of request alloc routines. Jinlong Chen (4): blk-mq: update comment for blk_mq_quiesce_queue_nowait() 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() blk-mq: improve readability of blk_mq_alloc_request() block/blk-mq.c | 105 ++++++++++++++++++++++++++++--------------------- 1 file changed, 61 insertions(+), 44 deletions(-)