Re: patch: kernel changes from reiserfs

From: Andi Kleen (ak@suse.de)
Date: Fri Apr 28 2000 - 15:18:22 EST


Chris Mason <mason@suse.com> writes:

>
> --- diff/linux-2.3.99-pre6/fs/buffer.c Fri Apr 28 12:09:15 2000
> +++ linux/fs/buffer.c Thu Apr 27 20:52:49 2000
> @@ -336,10 +336,11 @@
>
> /* sync the superblock to buffers */
> sb = inode->i_sb;
> - wait_on_super(sb);
> + lock_super(sb) ;
> if (sb->s_op && sb->s_op->write_super)
> sb->s_op->write_super(sb);

Iirc the wait_on_super instead of lock_super was intentional here, because
some programs (Oracle?) did spend excessive time being blocked on the
super block lock.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:15 EST