Re: [PATCH] direct IO breaks root filesystem

Alexander Viro (viro@math.psu.edu)
Tue, 11 Dec 2001 04:13:06 -0500 (EST)


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/