Re: [PATCH 1/5] Swap Migration V5: LRU operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 15 Nov 2005, Andrew Morton wrote:

> But lru_add_drain_per_cpu() will be called from interrupt context: the IPI
> handler.

Ahh.. thought you meant the lru_add_drain run on the local processor.
 
> I'm asking whether it is safe for the IPI handler to reenable interupts on
> all architectures.  It might be so, but I don't recall ever having seen it
> discussed, nor have I seen code which does it.

smp_call_function is also used by the slab allocator to drain the 
pages. All the spinlocks in there and those of the page allocator (called 
for freeing pages) use spin_lock_irqsave. Why is this not used for 
lru_add_drain() and friends?

Maybe we need to start a new thread so that others see it?

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux