Re: [PATCH 2/2] staging: lustre: disable preempt while sampling processor id.

2017-12-19 Thread Dilger, Andreas
On Dec 18, 2017, at 16:01, NeilBrown wrote: > > Calling smp_processor_id() without disabling preemption > triggers a warning (if CONFIG_DEBUG_PREEMPT). > I think the result of cfs_cpt_current() is only used as a hint for > load balancing, rather than as a precise and stable

Re: [PATCH 2/2] staging: lustre: disable preempt while sampling processor id.

2017-12-19 Thread Dilger, Andreas
On Dec 18, 2017, at 16:01, NeilBrown wrote: > > Calling smp_processor_id() without disabling preemption > triggers a warning (if CONFIG_DEBUG_PREEMPT). > I think the result of cfs_cpt_current() is only used as a hint for > load balancing, rather than as a precise and stable indicator of > the