diff options
author | Christoph Hellwig <hch@lst.de> | 2015-11-26 11:09:06 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-01 10:59:40 -0700 |
commit | 9a0be7abb62ff2a7dc3360ab45c31f29b3faf642 (patch) | |
tree | 8348da3a436611032ba1bd197a5ba9d8e30411a0 /drivers/nvme/host/nvme.h | |
parent | f3ca80fc11c3af566eacd99cf821c1a48035c63b (diff) | |
download | lwn-9a0be7abb62ff2a7dc3360ab45c31f29b3faf642.tar.gz lwn-9a0be7abb62ff2a7dc3360ab45c31f29b3faf642.zip |
nvme: refactor set_queue_count
Split out a helper that just issues the Set Features and interprets the
result which can go to common code, and document why we are ignoring
non-timeout error returns in the PCIe driver.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 93378be874e1..b75d41e5c378 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -232,6 +232,7 @@ int nvme_get_features(struct nvme_ctrl *dev, unsigned fid, unsigned nsid, dma_addr_t dma_addr, u32 *result); int nvme_set_features(struct nvme_ctrl *dev, unsigned fid, unsigned dword11, dma_addr_t dma_addr, u32 *result); +int nvme_set_queue_count(struct nvme_ctrl *ctrl, int *count); extern spinlock_t dev_list_lock; |