Re: [PATCH] crypto: testmgr - Only disable migration in crypto_disable_simd_for_test()

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

 



On 2021-10-05 11:17:16 [-0700], Eric Biggers wrote:
> Hi Sebastian,
Hi,

> The comment above the definition of migrate_disable() in include/linux/preempt.h
> claims that it is a temporary workaround.

It claims that, yes. I think this is due to the scheduler's limitation
and should not encourage to use this over long sections.

> Is there a better way to do this that should be used instead?

An alternative might be to move the whole test into a kworker which is
bound to a specific CPU. So even without disabling preemption/ migration
the per-CPU pointer would remain stable.

> - Eric

Sebastian



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux