bdev/nvme: Use bitfields to pack a few flags of struct nvme_ctrlr
This will enable us to add more flags without creating any extra hole. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I166e2bd3d116c8cebf75bfe4f290b390d9e3888e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9851 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
43adb646b8
commit
1e79d21967
@ -100,9 +100,10 @@ struct nvme_ctrlr {
|
||||
struct spdk_nvme_ctrlr *ctrlr;
|
||||
struct nvme_path_id *active_path_id;
|
||||
int ref;
|
||||
bool resetting;
|
||||
bool failover_in_progress;
|
||||
bool destruct;
|
||||
|
||||
uint32_t resetting : 1;
|
||||
uint32_t failover_in_progress : 1;
|
||||
uint32_t destruct : 1;
|
||||
/**
|
||||
* PI check flags. This flags is set to NVMe controllers created only
|
||||
* through bdev_nvme_attach_controller RPC or .INI config file. Hot added
|
||||
|
Loading…
Reference in New Issue
Block a user