Skip to content

Commit 4f76d0e

Browse files
Keith Buschaxboe
authored andcommitted
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>
1 parent a59e0f5 commit 4f76d0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/nvme.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ static inline bool nvme_io_incapable(struct nvme_ctrl *ctrl)
139139
u32 val = 0;
140140

141141
if (ctrl->ops->io_incapable(ctrl))
142-
return false;
142+
return true;
143143
if (ctrl->ops->reg_read32(ctrl, NVME_REG_CSTS, &val))
144-
return false;
144+
return true;
145145
return val & NVME_CSTS_CFS;
146146
}
147147

0 commit comments

Comments
 (0)