Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Dec 2001 04:13:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Dec 2001 04:13:23 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:32900 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Tue, 11 Dec 2001 04:13:10 -0500 Date: Tue, 11 Dec 2001 04:13:06 -0500 (EST) From: Alexander Viro To: GOTO Masanori cc: torvalds@transmeta.com, marcelo@conectiva.com.br, linux-kernel@vger.kernel.org, andrea@suse.de Subject: Re: [PATCH] direct IO breaks root filesystem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Dec 2001, GOTO Masanori wrote: > + /* > + * If inode is BLK and it is not already mounted, > + * blocksize change hardsect_size. > + */ > + if (S_ISBLK(inode->i_mode) && !is_mounted(inode->i_rdev)) { That's obviously wrong. What's to stop it from getting mounted right after that check? - 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/