lkml.org 
[lkml]   [1999]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectlookup_swap_cache: waiting on a page without holding the count?
From
Date

Hi

Is the call to __wait_on_page that is made in the lookup_swap_cache
function correct? Shouldn't we rather be doing the following in order
to ensure the page is held during the wait?

Cheers,
Trond



--- linux-2.2.10/mm/swap_state.c-orig Wed Jan 13 18:54:50 1999
+++ linux-2.2.10/mm/swap_state.c Wed Jun 23 18:04:07 1999
@@ -262,8 +262,8 @@
#endif
return found;
}
- __free_page(found);
__wait_on_page(found);
+ __free_page(found);
}

out_bad:

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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.021 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site