]> git.proxmox.com Git - mirror_zfs.git/commit
Wrap trace_set_debug_header in trace_[get|put]_tcd
authorPrakash Surya <surya1@llnl.gov>
Wed, 22 Aug 2012 19:30:59 +0000 (12:30 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Aug 2012 17:01:20 +0000 (10:01 -0700)
commit9baf44bc17ddbc01dae4feacda32e04aac73f730
tree031aadaba30c8818ddf03c5925ae4e76e703b8d1
parent039bae18ca3037124cd99384e782e3a2dc3e13f7
Wrap trace_set_debug_header in trace_[get|put]_tcd

To properly support CONFIG_PREEMPT enabled kernels, we must refrain from
using a CPU index when preemption is enabled. As a result, this change
moves the trace_set_debug_header call (which calls smp_processor_id)
within trace_get_tcd and trace_put_tcd (which disable and enable
preemption respectively).

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #160
module/spl/spl-debug.c