read_swap_cache_async() question

Manfred Spraul (manfreds@colorfullife.com)
Tue, 09 Nov 1999 23:40:11 +0100


read_swap_cache_async(,1) should wait until the actual IO completes, but
if the page is found in the swap cache, then it returns immediately
without waiting.

I think something like this is missing (untested):

out_free_page:
+ if(wait)
+ wait_on_page(found_page);
__free_page(new_page);

--
	Manfred

- 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/