mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
nvme: Make is_initialized a bool
is_initialized is used as a bool everywhere, and we never do any atomics with it, so make it really a bool. Sponsored by: Netflix
This commit is contained in:
parent
3192fc3023
commit
d40fc35f93
2 changed files with 4 additions and 3 deletions
|
|
@ -1167,7 +1167,7 @@ fail:
|
|||
nvme_sysctl_initialize_ctrlr(ctrlr);
|
||||
config_intrhook_disestablish(&ctrlr->config_hook);
|
||||
|
||||
ctrlr->is_initialized = 1;
|
||||
ctrlr->is_initialized = true;
|
||||
nvme_notify_new_controller(ctrlr);
|
||||
TSEXIT();
|
||||
}
|
||||
|
|
@ -1567,7 +1567,7 @@ nvme_ctrlr_construct(struct nvme_controller *ctrlr, device_t dev)
|
|||
taskqueue_start_threads(&ctrlr->taskqueue, 2, PI_DISK, "nvme taskq");
|
||||
|
||||
ctrlr->is_resetting = 0;
|
||||
ctrlr->is_initialized = 0;
|
||||
ctrlr->is_initialized = false;
|
||||
ctrlr->notification_sent = 0;
|
||||
TASK_INIT(&ctrlr->reset_task, 0, nvme_ctrlr_reset_task, ctrlr);
|
||||
STAILQ_INIT(&ctrlr->fail_req);
|
||||
|
|
|
|||
|
|
@ -298,12 +298,13 @@ struct nvme_controller {
|
|||
void *cons_cookie[NVME_MAX_CONSUMERS];
|
||||
|
||||
uint32_t is_resetting;
|
||||
uint32_t is_initialized;
|
||||
uint32_t notification_sent;
|
||||
|
||||
bool is_failed;
|
||||
bool is_dying;
|
||||
bool isr_warned;
|
||||
bool is_initialized;
|
||||
|
||||
STAILQ_HEAD(, nvme_request) fail_req;
|
||||
|
||||
/* Host Memory Buffer */
|
||||
|
|
|
|||
Loading…
Reference in a new issue