Messages in this thread | | | Date | Sun, 24 Jan 2010 21:59:06 +0100 | From | Andi Kleen <> | Subject | Re: [PATCH 1/2] lib: more scalable list_sort() |
| |
> Similarly, adding cond_resched() to list_sort means you can stop > worrying about the scheduling latency impact of sorting long lists. > I fail to see why you're making such a big deal out of this.....
It's not easy to add it to a low level library function like list_sort() because you would need to ensure that all callers are allowed to sleep.
Or even if all callers currently allow it future ones might not.
So it would need a new flag or so if needed, completely changing the interface.
-Andi
-- ak@linux.intel.com -- Speaking for myself only.
| |