From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764224AbZLQJc2 (ORCPT ); Thu, 17 Dec 2009 04:32:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764194AbZLQJcY (ORCPT ); Thu, 17 Dec 2009 04:32:24 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:56633 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756766AbZLQJcV (ORCPT ); Thu, 17 Dec 2009 04:32:21 -0500 Date: Thu, 17 Dec 2009 09:32:16 +0000 From: Al Viro To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Christoph Hellwig , Peter Zijlstra , Andrew Morton , Dave Chinner , Badari Pulavarty , Jeff Moyer , Jens Axboe , Zach Brown , Alex Elder , Mark Fasheh , Joel Becker Subject: Re: -tip: origin tree boot crash Message-ID: <20091217093216.GZ14381@ZenIV.linux.org.uk> References: <20091217090250.GA4844@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091217090250.GA4844@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2009 at 10:02:50AM +0100, Ingo Molnar wrote: > > Today's -tip crashes during bootup on one of my testsystems, and i've bisected > it back to this commit: > > | 5fe878ae7f82fbf0830dbfaee4c5ca18f3aee442 is the first bad commit > | commit 5fe878ae7f82fbf0830dbfaee4c5ca18f3aee442 > | Author: Christoph Hellwig > | Date: Tue Dec 15 16:47:50 2009 -0800 > | > | direct-io: cleanup blockdev_direct_IO locking > | > | Currently the locking in blockdev_direct_IO is a mess, we have three > | different locking types and very confusing checks for some of them. The > | most complicated one is DIO_OWN_LOCKING for reads, which happens to not > | actually be used. > > I have no bootlog available currently. The kernel config is attached. > > I've reverted the patch from -tip for now. How about this: diff --git a/fs/direct-io.c b/fs/direct-io.c index 4012885..e82adc2 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -1206,7 +1206,7 @@ __blockdev_direct_IO(int rw, struct kiocb *iocb, struct inode *inode, * NOTE: filesystems with their own locking have to handle this * on their own. */ - if (dio->flags & DIO_LOCKING) { + if (flags & DIO_LOCKING) { if (unlikely((rw & WRITE) && retval < 0)) { loff_t isize = i_size_read(inode); if (end > isize)