diff options
author | Keith Busch <[email protected]> | 2016-02-11 13:05:39 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-02-11 13:14:02 -0700 |
commit | 4f76d0e49835d3da33aa54811157421f7061805e (patch) | |
tree | cd914b2fb99dec0063feff0e770e321720d69b24 | |
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 <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Acked-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
-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; } |