Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4682479rdb; Tue, 12 Dec 2023 06:39:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IECEdu9hWpZJhr5nF7dpfKHltW7BLv0Qkk0z/L+dPFGqS87e7FtbHcVh5SyWG/Yrol/NLTM X-Received: by 2002:a05:6512:102d:b0:50a:10a6:1448 with SMTP id r13-20020a056512102d00b0050a10a61448mr2316092lfr.59.1702391994845; Tue, 12 Dec 2023 06:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702391994; cv=none; d=google.com; s=arc-20160816; b=VSEBhepk72ugzjsuQXfsAFULjw8h8d4ogjViq4zZ+0q3glBiLWxajYNr2h/ukFOAd2 B21Pb6dDIqLE9IyLI4p1z8GZaaCSp4+N2qo4l/nMC4XL0+IKv2waxXJYcuWByncjQvtN v7RRenLLeD13u0555b5c3j4Mm0gM54hKX2iLGmyLI0v27QHDdZc/IUoipezfvK2FzP/v KcVDHoqhFmpdH+oKYp51RKB9c1NWO1QBk7IlCVTS+qxAVBRij75xA1xC2DWpa74ssNR1 4SZ/qhbw606OUwPMoo87ONvsoPZVi0zdDxDxS/BYzq81S0QT7SomMzIkRBrQOtTMyrf7 jPDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=0Xyk0xLc4aITEOjcb/hxvGlqTGCq+if/7Cq9DGz23vo=; fh=ZnCOFr57llyVxJjIWpns9nayHXALd95dApTjlIsS2Ts=; b=UE3nfx2NBoA0up9YejUODxnY/Av1ji9xLw4xNsu4swwdTBwPpfVm3b0iH3cWJCPHXl aadHKwGJUCrckHVuE6kLw3UNoA9BE2Dzg9McmebekcgMcbVlBbkYHrqjCjFp8kGzf4Qu 6AP4tii85dKIibNzZdATjw80l5F22Qw3KSHy0BpCnpGp1NGEDBegdLY1NjEVe7bXl6H9 Mu6F72mjU/3N7EOw0/BUFlb75cFu0alAT8pCszXWyqybiUKKk/+eTaqV2iI70o3BALZ5 1pPPo01Bd+zTwXA/4zZfe/AeStOPZk1PjsyZeUK0S/FToRm85FE87xHhbLeIJgvmEgtm v7gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IsHQD5K0; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IsHQD5K0; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4+bounces-407-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-407-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q26-20020a1709064c9a00b00a1f78a5b5c1si3969970eju.613.2023.12.12.06.39.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 06:39:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-407-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IsHQD5K0; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IsHQD5K0; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4+bounces-407-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-407-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7E6A91F215AF for ; Tue, 12 Dec 2023 14:39:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D0D7745C2; Tue, 12 Dec 2023 14:39:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="IsHQD5K0"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="D3/y1Gqv"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="IsHQD5K0"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="D3/y1Gqv" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0334CCD for ; Tue, 12 Dec 2023 06:39:46 -0800 (PST) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 73CBD1FB45; Tue, 12 Dec 2023 14:39:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702391983; h=from:from: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=0Xyk0xLc4aITEOjcb/hxvGlqTGCq+if/7Cq9DGz23vo=; b=IsHQD5K0vcCfFFuoAYIm1SoGp7LNEpHSd9K2gt8AZ23TIedAvNQzacLCeYuJcBMpFDuqom 6WXCAk7dHr1OhC85TX0lLaKigH334zN0JwGiTUcz5Om9SCz6Dd6/Rg76Q/SZCtm9ZK5XAH mZnJYzVlmnfJfaQIARWZXdoQqViXh/U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702391983; h=from:from: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=0Xyk0xLc4aITEOjcb/hxvGlqTGCq+if/7Cq9DGz23vo=; b=D3/y1Gqv2qilN2M9QBkpdCDxWrl9NCeCcF06/uXgpyyrr3N/KuzVyQ+bH1CT/VxD4HhmK4 p+Zd3b+MYtidWKDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702391983; h=from:from: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=0Xyk0xLc4aITEOjcb/hxvGlqTGCq+if/7Cq9DGz23vo=; b=IsHQD5K0vcCfFFuoAYIm1SoGp7LNEpHSd9K2gt8AZ23TIedAvNQzacLCeYuJcBMpFDuqom 6WXCAk7dHr1OhC85TX0lLaKigH334zN0JwGiTUcz5Om9SCz6Dd6/Rg76Q/SZCtm9ZK5XAH mZnJYzVlmnfJfaQIARWZXdoQqViXh/U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702391983; h=from:from: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=0Xyk0xLc4aITEOjcb/hxvGlqTGCq+if/7Cq9DGz23vo=; b=D3/y1Gqv2qilN2M9QBkpdCDxWrl9NCeCcF06/uXgpyyrr3N/KuzVyQ+bH1CT/VxD4HhmK4 p+Zd3b+MYtidWKDg== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 67A2D132DC; Tue, 12 Dec 2023 14:39:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id p55LGa9weGXzVwAAn2gu4w (envelope-from ); Tue, 12 Dec 2023 14:39:43 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 1E6AEA06E5; Tue, 12 Dec 2023 15:39:43 +0100 (CET) Date: Tue, 12 Dec 2023 15:39:43 +0100 From: Jan Kara To: Zhihao Cheng Cc: tytso@mit.edu, jack@suse.com, linux-ext4@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH 0/5] jbd2: Add errseq to detect writeback Message-ID: <20231212143943.ycy35sujw3e5cz5k@quack3> References: <20231103145250.2995746-1-chengzhihao1@huawei.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231103145250.2995746-1-chengzhihao1@huawei.com> X-Spam-Score: 14.71 X-Spamd-Bar: ++++++ Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=IsHQD5K0; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b="D3/y1Gqv"; dmarc=none; spf=softfail (smtp-out2.suse.de: 2a07:de40:b281:104:10:150:64:98 is neither permitted nor denied by domain of jack@suse.cz) smtp.mailfrom=jack@suse.cz X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [6.75 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.977]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(1.20)[suse.cz]; R_SPF_SOFTFAIL(4.60)[~all:c]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim,suse.com:email]; NEURAL_SPAM_SHORT(1.77)[0.591]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.04)[57.75%]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:98:from] X-Spam-Score: 6.75 X-Rspamd-Queue-Id: 73CBD1FB45 X-Spam-Flag: NO On Fri 03-11-23 22:52:45, Zhihao Cheng wrote: > According to discussions in [1], this patchset adds errseq in journal to > enable JDB2 detecting meatadata writeback error of fs dev. Then, orginal > checking mechanism could be removed. > > [1] https://lore.kernel.org/all/20230908124317.2955345-1-chengzhihao1@huawei.com/T/ Thanks for the series! I'm sorry for the very delayed review. There has been a lot of work, conference and other stuff happening lately... Anyway the series looks good, I had just some language corrections. Honza > > Zhihao Cheng (5): > jbd2: Add errseq to detect client fs's bdev writeback error > jbd2: Replace journal state flag by checking errseq > jbd2: Remove unused 'JBD2_CHECKPOINT_IO_ERROR' and 'j_atomic_flags' > jbd2: Abort journal when detecting metadata writeback error of fs dev > ext4: Move ext4_check_bdev_write_error() into nojournal mode > > fs/ext4/ext4_jbd2.c | 5 ++--- > fs/jbd2/checkpoint.c | 11 ----------- > fs/jbd2/journal.c | 11 ++++++----- > fs/jbd2/recovery.c | 7 +------ > fs/jbd2/transaction.c | 14 ++++++++++++++ > include/linux/jbd2.h | 37 ++++++++++++++++++++++++++----------- > 6 files changed, 49 insertions(+), 36 deletions(-) > > -- > 2.39.2 > -- Jan Kara SUSE Labs, CR