Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp1271753pxw; Sat, 9 Apr 2022 17:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziOVE/l+wZaK2vfscvD7McudfiH/zAo404bpgmq5YnkXlqJQKTO0H3tTn7OYOti46soihM X-Received: by 2002:a05:6402:530b:b0:41d:6f3c:d8dc with SMTP id eo11-20020a056402530b00b0041d6f3cd8dcmr4007066edb.291.1649552303177; Sat, 09 Apr 2022 17:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649552303; cv=none; d=google.com; s=arc-20160816; b=F8pECVo0t5Z/3T5mWuKcHf3sF2jqpCiSuBWRheWlklhLg43PMyIwr5ZR3lfPrw0wfO B7Hs1p/H9E2qOgCad5mycXq4HYKtQfQIQ8l5p87BDOG9/D5uzTxkaZ4pylbP5apnIqOM B3Q6pI9ywUStzEByeZkXUJxdO/PaY+11XeUfar3iqeljIa+sYQDy1X2/VuSkAm8SAR27 L1EtEfPh/8/rEiiIe3o8SD03UXSTpQ2m+191p+gmQgJG3rOPJgv2Crq79Ye3HLNoL2ME kQDK0nULtTjbnh/alnJRlPV4Tt4mlmQmWzejPT/NHVM7Ak4VaNNts9jROcrt2x6W59oG 0URw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=rNReIfAGeus5Vto4N+wZUUGUeFj6AQ7Aj/5V+na+520=; b=IESdSAFlvi7QY0MO9YWPdT28dRyvU90g9oS36NB2F2V1fj8qx4upp3JyQZS318/ZAE Be7/3raoZlBChB7RKRikRln4U7diAWJuCcDauM19wC/dduO4Mc94/76nD7u/jLh2csot dJB0xUhbqS019sSO7VchztYHXot/mJbQ/6TYS8onNDG+sTZ+VnKnpWQdAeCp9v4IhkYI 5MvuZL3vISiQbXsddprFCD7huezogSsX/1C05FfB+aaOOCfIZWjQ0TLZh7XH48dXi3EA X+UQkNgXneyRjx4yIl6yF0Hq5jWXT5CxPRtQYfsxcP0x0cA3P63kOTJRgdmJhqNb/dmG cfNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=m1S+LWBp; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=tlQQY436; 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 o23-20020a170906289700b006e87f30c96csi919059ejd.323.2022.04.09.17.57.59; Sat, 09 Apr 2022 17:58:23 -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=@suse.cz header.s=susede2_rsa header.b=m1S+LWBp; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=tlQQY436; 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 S238952AbiDHSvA (ORCPT + 99 others); Fri, 8 Apr 2022 14:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233108AbiDHSu6 (ORCPT ); Fri, 8 Apr 2022 14:50:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 950731C7E9D; Fri, 8 Apr 2022 11:48:54 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 3F142210EF; Fri, 8 Apr 2022 18:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649443733; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rNReIfAGeus5Vto4N+wZUUGUeFj6AQ7Aj/5V+na+520=; b=m1S+LWBpFXdSFeUXBG6HVVbc7p1NapziMGAzaDWMNT0iwUV0MekpJXuX1S/vdaUulXMHZh Q6NX0la1j7fBSAs24pfx5ShIesxh3nXtZrGWn/WRYUSjpDZWPcBPvtgm/6E+gv3N0NMQdc eFQl+GlGn+aiqA1Mlt0s8E0aaWAWhoc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649443733; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rNReIfAGeus5Vto4N+wZUUGUeFj6AQ7Aj/5V+na+520=; b=tlQQY436byyl4INEuQNnGOB4sEwVb0WU3HCjIuwMvLooh7qHcCywDBiqRrkR1La4IGKc/j YgMpdoRbI62UNsAg== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id 33FD6A3B89; Fri, 8 Apr 2022 18:48:53 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 41229DA832; Fri, 8 Apr 2022 20:44:50 +0200 (CEST) Date: Fri, 8 Apr 2022 20:44:49 +0200 From: David Sterba To: Schspa Shi Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, terrelln@fb.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] btrfs: zstd: use spin_lock in timer function Message-ID: <20220408184449.GB15609@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Schspa Shi , clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, terrelln@fb.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220408181523.92322-1-schspa@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220408181523.92322-1-schspa@gmail.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Sat, Apr 09, 2022 at 02:15:23AM +0800, Schspa Shi wrote: > timer callback was running on bh, and there is no need to disable bh again. Why do you think so? There was a specific fix fee13fe96529 ("btrfs: correct zstd workspace manager lock to use spin_lock_bh()") that actually added the _bh, so either you need to explain why exactly it's not needed anymore and verify that the reported lockdep warning from the fix does not happen.