Commit 4c9f748f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

nvme: don't take the I/O queue q_lock in nvme_timeout

There is nothing it protects, but it makes lockdep unhappy in many different
ways.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 77bf25ea
...@@ -1094,13 +1094,13 @@ static void nvme_abort_req(struct request *req) ...@@ -1094,13 +1094,13 @@ static void nvme_abort_req(struct request *req)
struct nvme_command cmd; struct nvme_command cmd;
if (!nvmeq->qid || cmd_rq->aborted) { if (!nvmeq->qid || cmd_rq->aborted) {
spin_lock(&dev_list_lock); spin_lock_irq(&dev_list_lock);
if (!__nvme_reset(dev)) { if (!__nvme_reset(dev)) {
dev_warn(dev->dev, dev_warn(dev->dev,
"I/O %d QID %d timeout, reset controller\n", "I/O %d QID %d timeout, reset controller\n",
req->tag, nvmeq->qid); req->tag, nvmeq->qid);
} }
spin_unlock(&dev_list_lock); spin_unlock_irq(&dev_list_lock);
return; return;
} }
...@@ -1164,9 +1164,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved) ...@@ -1164,9 +1164,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved)
dev_warn(nvmeq->q_dmadev, "Timeout I/O %d QID %d\n", req->tag, dev_warn(nvmeq->q_dmadev, "Timeout I/O %d QID %d\n", req->tag,
nvmeq->qid); nvmeq->qid);
spin_lock_irq(&nvmeq->q_lock);
nvme_abort_req(req); nvme_abort_req(req);
spin_unlock_irq(&nvmeq->q_lock);
/* /*
* The aborted req will be completed on receiving the abort req. * The aborted req will be completed on receiving the abort 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