Re: [PATCH] Recent VM fiasco - fixed

From: Linus Torvalds (torvalds@transmeta.com)
Date: Thu May 11 2000 - 02:23:19 EST


Hmm..

 Having tested some more, the "wait for locked buffer" logic in
fs/buffer.c (sync_page_buffers()) seems toserialize thingsawhole lote more
than I initially thought..

Does it act the way you expect if you change the

        if (buffer_locked(p))
                __wait_on_buffer(p);
        else if (buffer_dirty(p))
                ll_rw_block(..

to a simpler

        if (buffer_dirty(p) && !buffer_locked(p))
                ll_rw_block(..

which doesn't endup serializing the IO all the time?

                Linus

-
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 : Mon May 15 2000 - 21:00:17 EST