]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zio.c
Introduce CPU_SEQID_UNSTABLE
authorMateusz Guzik <mjguzik@gmail.com>
Mon, 2 Nov 2020 19:51:12 +0000 (20:51 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Nov 2020 19:51:12 +0000 (11:51 -0800)
commit09eb36ce3d98e0eeaeec9c333ac818b2bc3f85bf
tree967d479b3fe081cc9e6cdd2d6ffc4daa412fc7d0
parent8583540c6e04135626fe301ace8aa51212826965
Introduce CPU_SEQID_UNSTABLE

Current CPU_SEQID users don't care about possibly changing CPU ID, but
enclose it within kpreempt disable/enable in order to fend off warnings
from Linux's CONFIG_DEBUG_PREEMPT.

There is no need to do it. The expected way to get CPU ID while allowing
for migration is to use raw_smp_processor_id.

In order to make this future-proof this patch keeps CPU_SEQID as is and
introduces CPU_SEQID_UNSTABLE instead, to make it clear that consumers
explicitly want this behavior.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #11142
include/os/freebsd/spl/sys/sysmacros.h
include/os/linux/spl/sys/sysmacros.h
include/sys/zfs_context.h
module/icp/core/kcf_sched.c
module/zfs/aggsum.c
module/zfs/dmu_object.c
module/zfs/txg.c
module/zfs/zio.c