freebsd-nq/module/icp
Morgan Jones d9ad3fea3b Add kpreempt_disable/enable around CPU_SEQID uses
In zfs/dmu_object and icp/core/kcf_sched, the CPU_SEQID macro
should be surrounded by `kpreempt_disable` and `kpreempt_enable`
calls to avoid a Linux kernel BUG warning.  These code paths use
the cpuid to minimize lock contention and is is safe to reschedule
the process to a different processor at any time.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Morgan Jones <me@numin.it>
Closes #6239
2017-06-19 09:43:16 -07:00
..
algs [icp] fpu and asm cleanup for linux 2017-03-07 12:59:31 -08:00
api Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00
asm-x86_64 [icp] fpu and asm cleanup for linux 2017-03-07 12:59:31 -08:00
core Add kpreempt_disable/enable around CPU_SEQID uses 2017-06-19 09:43:16 -07:00
include [icp] fpu and asm cleanup for linux 2017-03-07 12:59:31 -08:00
io codebase style improvements for OpenZFS 6459 port 2017-01-22 13:25:40 -08:00
os Use cstyle -cpP in make cstyle check 2016-12-12 10:46:26 -08:00
spi Use cstyle -cpP in make cstyle check 2016-12-12 10:46:26 -08:00
illumos-crypto.c OpenZFS 4185 - add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R 2016-10-03 14:51:15 -07:00
Makefile.in [icp] fpu and asm cleanup for linux 2017-03-07 12:59:31 -08:00