Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1820918ybb; Thu, 26 Mar 2020 07:57:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtCVXZsvJltOGp4XfKeBzHEniG5Ujj/ChCC/XjsIQvnAlUyDZqcZH+AUJZ5isjC9+gk5cSP X-Received: by 2002:a4a:e488:: with SMTP id s8mr5269167oov.81.1585234653152; Thu, 26 Mar 2020 07:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585234653; cv=none; d=google.com; s=arc-20160816; b=wE5ZC12pG6acpYaIUoMX516BK1b1kLHdY13Y4nM4OIFbKa0UTCDug140ND1CC72BBi Ux2esa7AG7TMA0WpbXyPjWaCqyaOpcKpm8oZZx6y/5YnsDD7ObgtfeS9bDmY8+IDg5uD Ya8vv7Vr8TQ6V4WF6QhVXaRXjoDp7XvRq3jvfe70dwK9mctReE3ttb5M/f2Nxm2zDu1Y qqJA48HKTHH+3sUPNjyYZtW/XIrLkf6F09i/DwefYHOfWNoPM+sN4axM7XbQlrvoCY7u as8EDrGYiLdXvlEvfil1caDKrJ10BfkpFyD1TgnEB4rqn2vNsPcd7E9XVK/ufS4HjCfA u/vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=o9FrNxuT5mjnDb7+ebBKbJIYxmOSkwujQB4tY2PwMPU=; b=ksMRcAczn/jPC64LRmiK5xRm8dT7mf2xi1P1M2tO5vOUSh4sLzUxPwu4mlOdfvRhnE v3sMeZHObzzxiBPG3hcCt3ZREuFOoVupJD+4b1sFN1+QoD3y930FnLyrTQaK7k6ufbW4 TW8WCyTmhD4Q+XRIkJnJREYhsX8kF9tx4QT4aYtROwyPm5DQmgGMxvFmhU3TLtOsBBzs I4/E2E6cfHxhb7kSAV7riJQRdXp92u9vvLVHfns1M3pK1sDGgHFyUZvmwuBEj3QHsduy QIi7Qi7s2KtnNoRuiEjFHhp5gIjyE274cD4Rqd2klsSRDThMIa3KGPn5aMu6Lt13uRfQ a7EQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si1173630otp.43.2020.03.26.07.57.20; Thu, 26 Mar 2020 07:57:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727939AbgCZO5Q (ORCPT + 99 others); Thu, 26 Mar 2020 10:57:16 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:59966 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727895AbgCZO5Q (ORCPT ); Thu, 26 Mar 2020 10:57:16 -0400 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 02QEvBVc002301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Mar 2020 10:57:11 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 46A4C420EBA; Thu, 26 Mar 2020 10:57:11 -0400 (EDT) Date: Thu, 26 Mar 2020 10:57:11 -0400 From: "Theodore Y. Ts'o" To: Eric Sandeen Cc: "linux-ext4@vger.kernel.org" , Ritesh Harjani Subject: Re: [PATCH] ext4: do not commit super on read-only bdev Message-ID: <20200326145711.GS53396@mit.edu> References: <4b6e774d-cc00-3469-7abb-108eb151071a@sandeen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b6e774d-cc00-3469-7abb-108eb151071a@sandeen.net> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Mar 18, 2020 at 02:19:38PM -0500, Eric Sandeen wrote: > From: Eric Sandeen > > Under some circumstances we may encounter a filesystem error on a > read-only block device, and if we try to save the error info to the > superblock and commit it, we'll wind up with a noisy error and > backtrace, i.e.: > > [ 3337.146838] EXT4-fs error (device pmem1p2): ext4_get_journal_inode:4634: comm mount: inode #0: comm mount: iget: illegal inode # > ------------[ cut here ]------------ > generic_make_request: Trying to write to read-only block-device pmem1p2 (partno 2) > WARNING: CPU: 107 PID: 115347 at block/blk-core.c:788 generic_make_request_checks+0x6b4/0x7d0 > ... > > To avoid this, commit the error info in the superblock only if the > block device is writable. > > Reported-by: Ritesh Harjani > Signed-off-by: Eric Sandeen Thanks, applied. - Ted