nvme: Add ctrl attributes for queue_count and sqsize
authorJames Smart <jsmart2021@gmail.com>
Tue, 24 Sep 2019 21:22:08 +0000 (14:22 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Wed, 25 Sep 2019 20:01:44 +0000 (13:01 -0700)
commit2b1ff255d2d043aa4e6d62f50c478b283f9943ac
treede3bd0639425e4acca551f2d27ac82445a9df30c
parent65e68edce0db433aa0c2b26d7dc14fbbbeb89fbb
nvme: Add ctrl attributes for queue_count and sqsize

Current controller interrogation requires a lot of guesswork
on how many io queues were created and what the io sq size is.
The numbers are dependent upon core/fabric defaults, connect
arguments, and target responses.

Add sysfs attributes for queue_count and sqsize.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c