From patchwork Wed Jul 13 13:19:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel@kyup.com X-Patchwork-Id: 9227593 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 21C886088F for ; Wed, 13 Jul 2016 13:21:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13DF127F46 for ; Wed, 13 Jul 2016 13:21:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 061D925749; Wed, 13 Jul 2016 13:21:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9154725749 for ; Wed, 13 Jul 2016 13:21:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751231AbcGMNTv (ORCPT ); Wed, 13 Jul 2016 09:19:51 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37740 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668AbcGMNTt (ORCPT ); Wed, 13 Jul 2016 09:19:49 -0400 Received: by mail-wm0-f42.google.com with SMTP id i5so68917770wmg.0 for ; Wed, 13 Jul 2016 06:19:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Tg6eH7IcznIYJJ/6W+UQ5/kriRPvrfzb99dFo+HowV8=; b=mf7Ihif7z+DptWWVk28tf8I79BbZRhY3f1zjqAa9VUxmX6p4R0L6TtcRzHqE3JGmZN 6KWIEOl3PGuTwdnRzImmndGqnXbewg6JgYyMIxahPWWSQyQM0Z3z5Uju8+Yovw9Wjhjm a1I23qDSz2MksxhIs4jb/qT8DLKSIoqmjImnqcxN5poLqEzjxwS6jbdiNDUH1ilTibBd V+OWb5Gnme6mbBme2fMygjdViBeGpZzsXefxzC7kYxmX7IHtyuYRuYJQ68xCrJGO+YoG XzuPrgXtijlfoXlI/2ZdRMSoYHfSbwy6bWkS/sL+/62CfnZx31eGPiyTcwV9FX12X2oH P1ew== X-Gm-Message-State: ALyK8tKbGRNl8+GouF7+Fuq40u7KVE+GI0r7XfugTR+VIynlW0zU40cNRTD7o4MBp6XSRh4u X-Received: by 10.194.102.35 with SMTP id fl3mr909345wjb.111.1468415964006; Wed, 13 Jul 2016 06:19:24 -0700 (PDT) Received: from localhost.localdomain (admins.1h.com. [82.118.240.130]) by smtp.gmail.com with ESMTPSA id iy6sm895507wjb.17.2016.07.13.06.19.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jul 2016 06:19:23 -0700 (PDT) From: Nikolay Borisov To: dsterba@suse.cz Cc: linux-btrfs@vger.kernel.org, Nikolay Borisov Subject: [PATCH 1/2] btrfs: Ratelimit an info message Date: Wed, 13 Jul 2016 16:19:14 +0300 Message-Id: <1468415955-30804-1-git-send-email-kernel@kyup.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <20160713121526.GJ10595@twin.jikos.cz> References: <20160713121526.GJ10595@twin.jikos.cz> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Recently during a crash it became apparent that this particular message can be printed so many times that it causes the softlockup detector to trigger. Fix it by ratelimiting it --- fs/btrfs/file-item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 62a81ee13a5f..6b58d0620e2f 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -250,7 +250,7 @@ static int __btrfs_lookup_bio_sums(struct btrfs_root *root, offset + root->sectorsize - 1, EXTENT_NODATASUM); } else { - btrfs_info(BTRFS_I(inode)->root->fs_info, + btrfs_info_rl(BTRFS_I(inode)->root->fs_info, "no csum found for inode %llu start %llu", btrfs_ino(inode), offset); }