HomeFreeBSD

Linux 5.10 compat: percpu_ref added data member

Description

Linux 5.10 compat: percpu_ref added data member

Kernel commit 2b0d3d3e4fcfb brought in some changes to the struct
percpu_ref structure that moves most of its fields into a member
struct named "data" of type struct percpu_ref_data. This includes
the "count" member which is updated by vdev_blkg_tryget(), so update
this function to chase the API change, and detect it via configure.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #11085

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Oct 18 2020, 2:36 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 2 2020, 10:01 PM
Parents
rG8c7d604c62bf: Linux 5.10 compat: frame.h renamed objtool.h
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG838a2490123a: Linux 5.10 compat: percpu_ref added data member (authored by Coleman Kane <ckane@colemankane.org>).Nov 2 2020, 10:01 PM