nvme: Change fail_on_reset to bool

This is safe since sysctl_handle_bool() handles ints transparently.

Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D55263
This commit is contained in:
Dag-Erling Smørgrav
2026-02-13 13:34:42 +01:00
parent 8d442cf32e
commit 1e2eea55c4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -300,8 +300,8 @@ struct nvme_controller {
struct nvme_async_event_request aer[NVME_MAX_ASYNC_EVENTS];
uint32_t is_resetting;
u_int fail_on_reset;
bool fail_on_reset;
bool is_failed;
bool is_failed_admin;
bool is_dying;
+1 -1
View File
@@ -425,7 +425,7 @@ nvme_sysctl_initialize_ctrlr(struct nvme_controller *ctrlr)
CTLFLAG_RD, &ctrlr->cap_hi, 0,
"Hi 32-bits of capacities for the drive");
SYSCTL_ADD_UINT(ctrlr_ctx, ctrlr_list, OID_AUTO, "fail_on_reset",
SYSCTL_ADD_BOOL(ctrlr_ctx, ctrlr_list, OID_AUTO, "fail_on_reset",
CTLFLAG_RD, &ctrlr->fail_on_reset, 0,
"Pretend the next reset fails and fail the controller");