Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1485695iog; Sat, 25 Jun 2022 10:33:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ubfPYCuhL2hVlZXXoTaVt7MgeRK/qNNRtmPJ3/auj1jmO8VPq4gHQOtTp8K4ZywbLu38zD X-Received: by 2002:a63:6d0d:0:b0:40c:f2dc:222f with SMTP id i13-20020a636d0d000000b0040cf2dc222fmr4491733pgc.414.1656178394079; Sat, 25 Jun 2022 10:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656178394; cv=none; d=google.com; s=arc-20160816; b=dgyUU1Z002y3gFwYAw3ECqm4l5yFE2ANk9sXxjNq8g8FLyEaKGBW8cTCBqZaDom2s2 qk1cNCvRdTJxBfts2HIXnCcrWwAEeGQzy/+wG8QYQHvG8Kj78CVA2vY7L3hfiXd0m8Ah nVxa8nRfKxpgOcvlUa+hjl9d4sZ6ptL0Bn9qMU19SUzCTPhjuQ2hRHt55ADQB/aPguDe wx+f+gkvhLbm+/DVu/HPLNMkUZApejb7OTbqFvfDuUc96xzbkzuXqcCEloTo557ZOytS GFHEjIdRfFWB0yNdWWEJgDW1BFhnHGYP0XYegi8g8enLHwXIUYwaGxxM0FNon2CGCVqE HVWw== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=Lyqt/8xMEJfXAgB3QKmRd6F7TnQPwfOqSXGZzoVDZfQ=; b=EdhWXKSjOOfmNp1DfFgIgePLN1usHenP5ugeQrsxDoftU4SsV87cxcdgtjFD2dt3Lw D+npTx0VY31zhsOxgGoRKTRKxn3AeKVAad1MkAdT/WCcHgMRaYGzO6CmhA91y8O+V/KJ 75tTMvaj85ehWvq/JzQyTTyabFHffJ8ureBHiZYjLtRLyR/fQO0CKzdG4H0G4Uys07SL Vt3suc+b8PY7bUGHoNmBXyXaoRObwucpcgy+Up3mRGdbRgIiB/FgGKMaMfJJeE0U0gQx GaSpwquNKZnUsOXqgmBj071GP4Aw49CgyqjjNE81ziVvMnfBSZs1P5u56VNsCLeNviqa y2/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=GKyB12Ox; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a056a00098c00b0051be4655281si7974889pfg.39.2022.06.25.10.32.59; Sat, 25 Jun 2022 10:33:14 -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; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=GKyB12Ox; 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 S233221AbiFYRCL (ORCPT + 99 others); Sat, 25 Jun 2022 13:02:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232937AbiFYRCK (ORCPT ); Sat, 25 Jun 2022 13:02:10 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74DCE15829 for ; Sat, 25 Jun 2022 10:02:09 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id x138so2555516pfc.3 for ; Sat, 25 Jun 2022 10:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=Lyqt/8xMEJfXAgB3QKmRd6F7TnQPwfOqSXGZzoVDZfQ=; b=GKyB12Ox3fecbB0aczZrQiVi9Yk1LyO8cPu3c2kKBUH1BT+1W+EY6I8OAsoG9EsvBS zYFm1eocUpAjMrmj7ORwrzVmA2kgYrzk0AwJwPbj2R7kNdllfBPVmwOYIH1izdWkztxR hxdPzm11ROPR4s0Jp/UDa57jBUnQ4YWYxjg6Lko6XNxxreOaNVoZYl8hGPvlg6fh9U4c G8sB0seKY6Lhu/l8C6rO2ORpMjINBZ1xVVbDTIQGwUud6WPG3RN2N8s7a/3+m5NhQhbf FzAnZjREKXw3B1Pa8Akz65REc/UCjYtKxEcxef0DMmHGUiX8j0LdF9DNd5i61QTD+Vkk yi+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=Lyqt/8xMEJfXAgB3QKmRd6F7TnQPwfOqSXGZzoVDZfQ=; b=75gP5qi24NLoLDrA0mL++Y5lpa7zy75bgybzscjZD8TGl8Sw/BTtogKzIfZfEURWcJ s5gaIQZCagVCgO0+3quuS0hLXQHXYhawZxWBeuF0I4K6/B8lG7PMFiGN+gw7nFG/czCo bGcVmOR+BLhoMyuvvWAozk2ZRMpUXtzNZjjtnp7AEch1r7CRKU4djDjCDoq3oaRiNHMV Y2LX5PEj2vpI5MMwwnXiT944h1eLuls7hW8YKwA0eE7TzzOeiTOKht7VaEMajZ35Y/c8 rhyi61Fq+7pBOMA4+n/ddtUzUNOKPvm2g/zFCKmdFpL1o91RH+0xWhojaidf9IpiArpa ZxIQ== X-Gm-Message-State: AJIora/Wp+wWW6/8sGHP081WdoJK59QynUtVTLpG8VZaJUQDxYBc3qZF k4ypohWLxbXEu6IrVErEmPuQyPYE2JKnIg== X-Received: by 2002:aa7:8008:0:b0:51a:cae3:7563 with SMTP id j8-20020aa78008000000b0051acae37563mr5099164pfi.16.1656176528722; Sat, 25 Jun 2022 10:02:08 -0700 (PDT) Received: from [127.0.1.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id r19-20020a170902e3d300b00163f8ddf160sm3932508ple.161.2022.06.25.10.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 10:02:08 -0700 (PDT) From: Jens Axboe To: wuchi.zero@gmail.com, mwilck@suse.com, andriy.shevchenko@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org In-Reply-To: <20220605145835.26916-1-wuchi.zero@gmail.com> References: <20220605145835.26916-1-wuchi.zero@gmail.com> Subject: Re: [PATCH] lib/sbitmap: Fix invalid loop in __sbitmap_queue_get_batch() Message-Id: <165617652775.121867.397759941071832869.b4-ty@kernel.dk> Date: Sat, 25 Jun 2022 11:02:07 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 5 Jun 2022 22:58:35 +0800, wuchi wrote: > 1. Getting next index before continue branch. > 2. Checking free bits when setting the target bits. Otherwise, > it may reuse the busying bits. > > Applied, thanks! [1/1] lib/sbitmap: Fix invalid loop in __sbitmap_queue_get_batch() (no commit info) Best regards, -- Jens Axboe