> It's a choice between two behaviours: > > a) get stuck in the kernel until someone kills you and > > b) fault the page in and proceed as expected. > > Option b) is better, no? That's what I don't understand... where is the actual race that can cause the livelock you are mentioning. Is this that TryLock always fails, we wait, the lock gets available but since we have dropped the semaphore around the wait, it might get stolen again by the time we are taking the mmap_sem back and that going on ever and ever again while lock_page() would get precedence since we have the mmap_sem ? Ben. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Andrew Morton <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- References:
- [RFC] page fault retry with NOPAGE_RETRY
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Andrew Morton <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Mike Waychison <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Andrew Morton <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Andrew Morton <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC] page fault retry with NOPAGE_RETRY
- From: Andrew Morton <[email protected]>
- [RFC] page fault retry with NOPAGE_RETRY
- Prev by Date: best way to determine if a module is loaded - from another module
- Next by Date: Re: Possible bug in ACPI
- Previous by thread: Re: [RFC] page fault retry with NOPAGE_RETRY
- Next by thread: Re: [RFC] page fault retry with NOPAGE_RETRY
- Index(es):