Re: [PATCH] scsi: target: Avoid smp_processor_id() in preemptible code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/13/21 8:36 AM, Mike Christie wrote:
> Is there something else that's used normally? raw_smp_processor_id?

+1 for raw_smp_processor_id() since my understanding is that
SCF_USE_CPUID is a performance optimization only and correctness of the
target code is not affected if the running thread is moved to another
CPU core by the scheduler.

Thanks,

Bart.





[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux