Message ID | 20221222143353.598042-1-shikemeng@huaweicloud.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp169163wrn; Wed, 21 Dec 2022 22:43:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXsRqe57vbLFkkde29z1gVhVLqOAzn6YgJ1Nk8ZbEgcOUNQljXPLYGuSgXaUVpYrHPthCgsl X-Received: by 2002:a17:907:d109:b0:818:3f54:8df7 with SMTP id uy9-20020a170907d10900b008183f548df7mr4359623ejc.2.1671691426068; Wed, 21 Dec 2022 22:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671691426; cv=none; d=google.com; s=arc-20160816; b=Rte67dxfZfnxjU9nGXK7Dc6m4ZqELuWs7vk8Kx0610X1IOehDPl6QO0OOli4ZglmGF LQTXcvJfPCm427zSfh437n3yIoZgFBBCc36++LdNquBcUeYqsQVjcpf3jjqXYZBjcr1k 6dBHYd8Wr5RjEX+KQ05KU4hBzBCJ9baGYIGkGjZO5KJ9xje2vsZjMESRbUBUpQA+X8jO Fvavpaq6RYQQIRRFap1fqlsWxjJ9typ9siAdkohIiLCBXCKuB4w0buPCMGNqEKGkeDpX aJiipI7gGF/iun/QKEjp3PW+2Xh2obohNVX+hzZogS/DjT2/afYzTDeVDt0dsbYPnEq5 l6SA== 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=lNfxCO5JhqbmUcrOJypB9S3EqqaPsfdH9bIxO95A0pc=; b=YCAE2+x8aY8tUiEqrXEZpCjomRUcGXGFQ2QEPGr1xsWD2nUGfvt4HMQB+XX2qHlXYC ODvPghGdTOYH1gZ6NAVqegDq5NjaFMbLOpU07Q24/gnrI8RflUslR2LhqgdunLdRH4cV rTuIEKNXqw/Ev6FOKub8TndiHxK7tAM4oDq4Bzs7nBiB2Ay7oAymHhuTZxUx9vWiFFvI mvf6ptwm1VsL8C+KkcF3DOZj+TKJH/H1HmAIxN/oCTrtvmBHDXXAGcdq2mThWURQg447 28hog9FYIzMbJitUoYE4bucx84oHrgc1vZxQPu5kARN9BTsjz93SuIbq3vyDYscGFXvV TEWw== 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 w21-20020a1709062f9500b007ae63fe980dsi5032981eji.931.2022.12.21.22.43.22; Wed, 21 Dec 2022 22:43:46 -0800 (PST) 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 S235147AbiLVGfG (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Thu, 22 Dec 2022 01:35:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235052AbiLVGfB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 22 Dec 2022 01:35:01 -0500 Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB3FA1E3C7; Wed, 21 Dec 2022 22:34:59 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4Nd0sn5d5Hz4f3jJ0; Thu, 22 Dec 2022 14:34:53 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgDH5jCP+qNjzwckAQ--.30442S2; Thu, 22 Dec 2022 14:34:56 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jack@suse.cz, kbusch@kernel.org, shikemeng@huaweicloud.com Subject: [PATCH RESEND v2 0/5] A few bugfix and cleanup patches for sbitmap Date: Thu, 22 Dec 2022 22:33:48 +0800 Message-Id: <20221222143353.598042-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgDH5jCP+qNjzwckAQ--.30442S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtFW8JF4DZFy5Jry8uw1xZrb_yoW3Kwb_tF WkAFW8tFykJF15JFy7XFy7AFyDKw4kJa4UtanayrWxJr1xZas7Xw4kuFW2qr15ZFyDuF15 Jry5Jrs5AwnI9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxxFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M28lY4IEw2IIxx k0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK 6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7 xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40E FcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr 0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8v x2IErcIFxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F4 0E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1l IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjTRCA pnUUUUU X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, SPF_HELO_NONE,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?1752895508800816368?= X-GMAIL-MSGID: =?utf-8?q?1752895508800816368?= |
Series |
A few bugfix and cleanup patches for sbitmap
|
|
Message
Kemeng Shi
Dec. 22, 2022, 2:33 p.m. UTC
Hi, this series contain a bugfix patch to correct wake_batch recalculation to avoid potential IO hung and a few cleanup patches to remove unnecessary check and repeat code in sbitmap. Thanks. --- v2: -add patch "sbitmap: correct wake_batch recalculation to avoid potential IO hung" --- Kemeng Shi (5): sbitmap: remove unnecessary calculation of alloc_hint in __sbitmap_get_shallow sbitmap: remove redundant check in __sbitmap_queue_get_batch sbitmap: rewrite sbitmap_find_bit_in_index to reduce repeat code sbitmap: add sbitmap_find_bit to remove repeat code in __sbitmap_get/__sbitmap_get_shallow sbitmap: correct wake_batch recalculation to avoid potential IO hung lib/sbitmap.c | 103 ++++++++++++++++++++++---------------------------- 1 file changed, 46 insertions(+), 57 deletions(-)