Commit 52da4f3f authored by Keith Busch's avatar Keith Busch Committed by Christoph Hellwig

nvme-pci: iod's 'aborted' is a bool

It's only true or false, so make this a bool to reflect that and save
some space in nvme_iod.
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent a53232cb
...@@ -227,7 +227,7 @@ struct nvme_iod { ...@@ -227,7 +227,7 @@ struct nvme_iod {
struct nvme_request req; struct nvme_request req;
struct nvme_command cmd; struct nvme_command cmd;
bool use_sgl; bool use_sgl;
int aborted; bool aborted;
int npages; /* In the PRP list. 0 means small pool in use */ int npages; /* In the PRP list. 0 means small pool in use */
dma_addr_t first_dma; dma_addr_t first_dma;
unsigned int dma_len; /* length of single DMA segment mapping */ unsigned int dma_len; /* length of single DMA segment mapping */
...@@ -891,7 +891,7 @@ static blk_status_t nvme_prep_rq(struct nvme_dev *dev, struct request *req) ...@@ -891,7 +891,7 @@ static blk_status_t nvme_prep_rq(struct nvme_dev *dev, struct request *req)
struct nvme_iod *iod = blk_mq_rq_to_pdu(req); struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
blk_status_t ret; blk_status_t ret;
iod->aborted = 0; iod->aborted = false;
iod->npages = -1; iod->npages = -1;
iod->sgt.nents = 0; iod->sgt.nents = 0;
...@@ -1412,7 +1412,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req) ...@@ -1412,7 +1412,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req)
atomic_inc(&dev->ctrl.abort_limit); atomic_inc(&dev->ctrl.abort_limit);
return BLK_EH_RESET_TIMER; return BLK_EH_RESET_TIMER;
} }
iod->aborted = 1; iod->aborted = true;
cmd.abort.opcode = nvme_admin_abort_cmd; cmd.abort.opcode = nvme_admin_abort_cmd;
cmd.abort.cid = nvme_cid(req); cmd.abort.cid = nvme_cid(req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment