diff --git a/mm/swap_state.c b/mm/swap_state.c index 5a026566abee1f04825913d7fc7870f14e55fb61..7b9d434156eb6dfb49f76ca6bf3f05b9109aae21 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -550,7 +550,7 @@ struct page *__read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, * __read_swap_cache_async(), which has set SWAP_HAS_CACHE * in swap_map, but not yet added its page to swap cache. */ - cond_resched(); + schedule_timeout_uninterruptible(1); } /* call radix_tree_preload() while we can wait. */