SUNRPC: convert RPC_TASK_* constants to enum
authorStephen Brennan <stephen.s.brennan@oracle.com>
Mon, 19 Aug 2024 15:58:59 +0000 (08:58 -0700)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 23 Sep 2024 19:03:13 +0000 (15:03 -0400)
commit0b108e83795c9c23101f584ef7e3ab4f1f120ef0
tree739fc8747bb976d7ce2bd37b15a6689f3c48a00b
parent9090a7f78623b5312562861d54a4476d905c7c4c
SUNRPC: convert RPC_TASK_* constants to enum

The RPC_TASK_* constants are defined as macros, which means that most
kernel builds will not contain their definitions in the debuginfo.
However, it's quite useful for debuggers to be able to view the task
state constant and interpret it correctly. Conversion to an enum will
ensure the constants are present in debuginfo and can be interpreted by
debuggers without needing to hard-code them and track their changes.

Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
include/linux/sunrpc/sched.h