Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610Ab3EMDhG (ORCPT ); Sun, 12 May 2013 23:37:06 -0400 Received: from li9-11.members.linode.com ([67.18.176.11]:47882 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751929Ab3EMDhD (ORCPT ); Sun, 12 May 2013 23:37:03 -0400 Date: Sun, 12 May 2013 23:36:55 -0400 From: "Theodore Ts'o" To: Tony Luck Cc: eunb.song@samsung.com, Dmitry Monakhov , "linux-ext4@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: EXT4 panic at jbd2_journal_put_journal_head() in 3.9+ Message-ID: <20130513033655.GE25996@thunk.org> Mail-Followup-To: Theodore Ts'o , Tony Luck , eunb.song@samsung.com, Dmitry Monakhov , "linux-ext4@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <7032562.14371368411664268.JavaMail.weblogic@epml07> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 975 Lines: 20 On Sun, May 12, 2013 at 08:11:59PM -0700, Tony Luck wrote: > > My best guess as to why this commit causes problems is that there are places > where updates to individual fields in this structure used to be independent > because they were to whole words. Now we have bitfileds there are races > between access to different fields in the same word. Yeah, except we access the fields while holding a lock.... wait a minute. We're using bit_spinlocks().... and am I missing something? Where are the barrier statements to prevent the CPU or the compiler from reordering statements around bit_spin_lock()? But if that's the problem, I would have expected lots of other things to be broken. - Ted -- 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/