This does gloss over the distinction between the swap_list_lock()
and the swap_device_lock(si). The latter is the more crucial here,
but difficult to use in this way. Though if you were to throw it
away and convert to swap_list_lock() throughout, I wonder if we'd
lose much (only gain on systems with just one swap area). But I
wasn't daring to combine them myself.
> If you don't have that one already done, I can write it as soon as you
> answer me.
Don't wait on me: I'm not ready with my implementation yet, and
you think a lot faster than I do. If you find you can resolve
the details, go ahead. Beware shmem_writepage, where the one
page metamorphoses from being a file page to being a swap page.
Do you intend to scrap the BKL bracketing now?
I hope to resume tomorrow, unless you've sewn it up by then.
Hugh
-
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/