Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp329822rwb; Wed, 16 Nov 2022 00:58:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KKH1PoSgvsCWHVAbj3pRoufGq0mOO1cFAKBbgUzTNCB+OsG0T97jx7uX+DfnDs5jEP9n9 X-Received: by 2002:a05:6a00:2cd:b0:558:99cc:8b40 with SMTP id b13-20020a056a0002cd00b0055899cc8b40mr22030886pft.25.1668589102502; Wed, 16 Nov 2022 00:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668589102; cv=none; d=google.com; s=arc-20160816; b=zsyar9yTpHbbs2LIx88eMYWovQYT8VqdXTgazW9rMcrExhF6H/Fl+oP3qwVWNO0DNb h//y2yJjFTYI64+5VEK3W7lhkw3vcnx5Ia9jokKPMZcd1vR7EAY9nqUPZ7oTsjl24qQL x2tUKfvvdsAzqk14MeHro3Mjq4dLki/YEEseGXRR6kGLJpHQJrnZ1bst9Fd6Q766mVAy Cz1X8LyOenyBp1UAhRR0x1c7hRIslxhNDU8cHGpgn/Nsg3pwiqk0S6F5KBwBa4+/6yJ/ HDBKQo2ye6QGvtMz3ubCvAXjHabgY0rKeH17C1Iz20XCt4YT8hAmO7ThttPEX9WBB1c6 Pj9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=0G3uibw+tfGxTUp77m6k58oTLGrraZmsB9rTgCgQ/BY=; b=pZp9kbK9zFwU6rxUHfbfei0w95et3gsenmeLnlZxlOuK/7MMe9Ft+wiX3hoYAEZ891 hVQjPqKDKCSt9dTeCGWhY1erNYP8y+tMR2CCMP/Z8nF4xskBKL7mMYpGmPQ6vPxmHmqs yOan8zi4OYgU2P+q9votIo8qZLX0bwqrb8z40THoW/v2taDmRhrBVgll+9PnYp7nmtYF jnWp1uT8s64XMu7q42iZdYxEoiq7VPx9eq+dVCTaJACuePLZa43ERhHmY4Iw9fFGeBlS uCSBAbYmXcnErle0iUGmCGJyMj4c4AXHBm8WKqLerioHQ8R27QoZVZNRl9NxsNLqaUQN bL6A== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v69-20020a638948000000b0046ecd36adbasi13867902pgd.635.2022.11.16.00.58.10; Wed, 16 Nov 2022 00:58:22 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238592AbiKPINY (ORCPT + 90 others); Wed, 16 Nov 2022 03:13:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238559AbiKPIND (ORCPT ); Wed, 16 Nov 2022 03:13:03 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F97140C3; Wed, 16 Nov 2022 00:10:03 -0800 (PST) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NBwbS1s8czqSV8; Wed, 16 Nov 2022 16:05:56 +0800 (CST) Received: from kwepemm600015.china.huawei.com (7.193.23.52) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 16 Nov 2022 16:09:42 +0800 Received: from [10.174.176.52] (10.174.176.52) by kwepemm600015.china.huawei.com (7.193.23.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 16 Nov 2022 16:09:41 +0800 Message-ID: Date: Wed, 16 Nov 2022 16:09:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH v4 1/3] btrfs: add might_sleep() to some places in update_qgroup_limit_item() To: Qu Wenruo , , , CC: , , , , References: <20221115171709.3774614-1-chenxiaosong2@huawei.com> <20221115171709.3774614-2-chenxiaosong2@huawei.com> <9b47b291-b1a0-ac0c-2049-b7de6545c26b@gmx.com> From: ChenXiaoSong In-Reply-To: <9b47b291-b1a0-ac0c-2049-b7de6545c26b@gmx.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.176.52] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600015.china.huawei.com (7.193.23.52) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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: X-Mailing-List: linux-kernel@vger.kernel.org 在 2022/11/16 6:48, Qu Wenruo 写道: > Looks good. > > We may want to add more in other locations, but this is really a good > start. > > Reviewed-by: Qu Wenruo > > Thanks, > Qu If I just add might_sleep() in btrfs_alloc_path() and btrfs_search_slot(), is it reasonable? Or just add might_sleep() to one place in update_qgroup_limit_item() ?