lkml.org 
[lkml]   [1999]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SMP locking for add_to_swap_cache()

On Thu, 11 Nov 1999, Manfred Spraul wrote:

> can I call add_to_swap_cache() without the big kernel lock, and with a
> normal spinlock? This would simplify shm_swap().
> AFAICS, 2.3.26 does not sleep in add_to_swap_cache, and it does not need
> the big kernel lock.

yes - i believe this should be done as part of threading the swapping code
completely: protect the swap map with a spinlock, etc.

-- mingo


-
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:54    [W:0.782 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site