]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Wrap smp_processor_id in kpreempt_[dis|en]able
authorPrakash Surya <surya1@llnl.gov>
Fri, 24 Aug 2012 00:45:31 +0000 (17:45 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Aug 2012 20:19:06 +0000 (13:19 -0700)
commit15a9e03368d8f186751a432740a5a281f45d712d
tree94ad8ef71428ac66e58f816cb993deb5ed8c1aec
parent52cd92022eaf8f105510df708d234012cbe5078d
Wrap smp_processor_id in kpreempt_[dis|en]able

After surveying the code, the few places where smp_processor_id is used
were deemed to be safe to use with a preempt enabled kernel. As such, no
core logic had to be changed. These smp_processor_id call sites are simply
are wrapped in kpreempt_disable and kpreempt_enabled to prevent the
Linux kernel from emitting scary warnings.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Issue #83
include/sys/zfs_context.h
module/zfs/fm.c
module/zfs/txg.c