]> granicus.if.org Git - zfs/commit
Avoid calling smp_processor_id in spl_magazine_age
authorPrakash Surya <surya1@llnl.gov>
Thu, 23 Aug 2012 21:00:58 +0000 (14:00 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Aug 2012 16:43:22 +0000 (09:43 -0700)
commit08850eddcb128cbdca584255324d71dfee2ccba9
tree000c6cd4d1c90648a02593cca4d786146f6ceb59
parent15d0411297113cb2681f5522ed373d4d37fcf132
Avoid calling smp_processor_id in spl_magazine_age

The spl_magazine_age function had the implied assumption that it will
remain on its current cpu through its execution. In order to support
preempt enabled kernels, this assumption had to be removed.

The spl_kmem_magazine structure now holds the cpu id of the cpu it is
local to. This allows spl_magazine_age to use this field when scheduling
work to be done by the magazine's local cpu.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #98
include/sys/kmem.h
module/spl/spl-kmem.c