git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4743 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-01-17 21:13:12 +00:00
parent 61f58f5792
commit 5dcbbc5aaa

View File

@@ -615,17 +615,10 @@ static inline atomic_t *scst_get(void)
atomic_t *a;
/*
* We don't mind if we because of preemption inc counter from another
* CPU as soon in the majority cases we will the correct one. So, let's
* have preempt_disable/enable only in the debug build to avoid warning.
* CPU as soon in the majority cases we will the correct one.
*/
#ifdef CONFIG_DEBUG_PREEMPT
preempt_disable();
#endif
a = &scst_percpu_infos[smp_processor_id()].cpu_cmd_count;
a = &scst_percpu_infos[raw_smp_processor_id()].cpu_cmd_count;
atomic_inc(a);
#ifdef CONFIG_DEBUG_PREEMPT
preempt_enable();
#endif
TRACE_DBG("Incrementing cpu_cmd_count %p (new value %d)",
a, atomic_read(a));
/* See comment about smp_mb() in scst_suspend_activity() */