Re: [PATCH 08 of 11] anon-vma-rwsem
From: Linus Torvalds
Date: Wed May 14 2008 - 12:58:26 EST
On Wed, 14 May 2008, Robin Holt wrote:
>
> Would it be acceptable to always put a sleepable stall in even if the
> code path did not require the pages be unwritable prior to continuing?
> If we did that, I would be freed from having a pool of invalidate
> threads ready for XPMEM to use for that work. Maybe there is a better
> way, but the sleeping requirement we would have on the threads make most
> options seem unworkable.
I'm not understanding the question. If you can do you management outside
of the spinlocks, then you can obviously do whatever you want, including
sleping. It's changing the existing spinlocks to be sleepable that is not
acceptable, because it's such a performance problem.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/