Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758260AbXHOMEQ (ORCPT ); Wed, 15 Aug 2007 08:04:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752671AbXHOMEA (ORCPT ); Wed, 15 Aug 2007 08:04:00 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:60463 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbXHOMD7 (ORCPT ); Wed, 15 Aug 2007 08:03:59 -0400 X-Greylist: delayed 1581 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 Aug 2007 08:03:59 EDT Date: Wed, 15 Aug 2007 13:37:37 +0200 From: Jan Kara To: Josef Bacik Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fix panic in jbd by adding locks Message-ID: <20070815113737.GC7642@atrey.karlin.mff.cuni.cz> References: <20070814152255.GB24127@dhcp-243-37.rdu.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070814152255.GB24127@dhcp-243-37.rdu.redhat.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1033 Lines: 24 Hello, > It is possible to panic the box by a race condition that exists in the > journalling code where we do not take the j_revoke_lock when traversing the > journal's revoked record list. This patch has been tested and we haven't seen > the issue yet, its a rather straightforward and correct (at least I think so :) > fix. Thank you, In principle, the patch looks fine. The only thing I'm wondering about is how that panic can happen... Journal write_revoke_records() is called from journal_commit_transaction() when revoke table for the committing transaction shouldn't see any further changes. So maybe the patch is masking a different problem. Do you have a way of reproducing the problem? Any stack trace available? Honza -- Jan Kara SuSE CR Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/