nfit/ars: Introduce scrub_flags
authorDan Williams <dan.j.williams@intel.com>
Wed, 13 Feb 2019 17:57:22 +0000 (09:57 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 20 Feb 2019 22:18:59 +0000 (14:18 -0800)
commite34b8252a3d2893ca55c82dbfcdaa302fa03d400
tree43722849afc7856cd471c009e22e80ede83ed5ad
parent317a992ab9266b86b774b9f6b0f87eb4f59879a1
nfit/ars: Introduce scrub_flags

In preparation for introducing new flags to gate whether ARS results are
stale, or poll the completion state, convert the existing flags to an
unsigned long with enumerated values. This conversion allows the flags
to be atomically updated outside of ->init_mutex.

Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/acpi/nfit/nfit.h