diff options
author | Keith Busch <keith.busch@intel.com> | 2016-02-11 13:05:39 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-02-11 13:14:02 -0700 |
commit | 4f76d0e49835d3da33aa54811157421f7061805e (patch) | |
tree | cd914b2fb99dec0063feff0e770e321720d69b24 /drivers | |
parent | a59e0f5795fe52dad42a99c00287e3766153b312 (diff) |
NVMe: Fix io incapable return values
The function returns true when the controller can't handle IO.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/host/nvme.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 4fb5bb737868..9664d07d807d 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -139,9 +139,9 @@ static inline bool nvme_io_incapable(struct nvme_ctrl *ctrl) u32 val = 0; if (ctrl->ops->io_incapable(ctrl)) - return false; + return true; if (ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &val)) - return false; + return true; return val & NVME_CSTS_CFS; } |