From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0D06C04AA7 for ; Mon, 13 May 2019 16:57:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8AF4720879 for ; Mon, 13 May 2019 16:57:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729588AbfEMQ5x (ORCPT ); Mon, 13 May 2019 12:57:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:39212 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728822AbfEMQ5x (ORCPT ); Mon, 13 May 2019 12:57:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 27A10AFCC; Mon, 13 May 2019 16:57:52 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 3EB03DA851; Mon, 13 May 2019 18:58:53 +0200 (CEST) Date: Mon, 13 May 2019 18:58:53 +0200 From: David Sterba To: Filipe Manana Cc: dsterba@suse.cz, linux-btrfs Subject: Re: [PATCH v2] Btrfs: fix race between send and deduplication that lead to failures and crashes Message-ID: <20190513165853.GG3138@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Filipe Manana , linux-btrfs References: <20190415083018.2224-1-fdmanana@kernel.org> <20190422154342.11873-1-fdmanana@kernel.org> <20190513155607.GD3138@twin.jikos.cz> <20190513160704.GE3138@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, May 13, 2019 at 05:18:37PM +0100, Filipe Manana wrote: > I would leave it as it is unless users start to complain. Yes, the > test does this on purpose. > Adding such code/state seems weird to me, instead I would change the > rate limit state so that the messages would repeat much less > frequently. The difference to the state tracking is that the warning would be printed repeatedly, which I find unnecessary and based on past user feedback, there will be somebody asking about that. The rate limiting can also skip a message that can be for a different subvolume, so this makes it harder to diagnose problems. Current state is not satisfactory at least for me because it hurts testing, the test runs for about 2 hours now, besides the log bloat. The number of messages that slipped through ratelimiting is now over 11k, which is roughly 150k messages printed overall.