Commit fe76fcfb authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe

nvme-pci: remove HMB teardown on reset

The controller is required to disable its host memory buffer use on
controller reset. We don't need to submit an admin command to delete it,
so this patch skips sending that command so we don't need to worry about
handling a timeout.
Signed-off-by: Keith Busch's avatarKeith Busch <[email protected]>
Reviewed-by: default avatarJohannes Thumshirn <[email protected]>
Signed-off-by: default avatarChristoph Hellwig <[email protected]>
Signed-off-by: default avatarJens Axboe <[email protected]>
parent ded45505
......@@ -2224,14 +2224,6 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool shutdown)
if (!dead && dev->ctrl.queue_count > 0) {
* If the controller is still alive tell it to stop using the
* host memory buffer. In theory the shutdown / reset should
* make sure that it doesn't access the host memoery anymore,
* but I'd rather be safe than sorry..
if (dev->host_mem_descs)
nvme_set_host_mem(dev, 0);
nvme_disable_admin_queue(dev, shutdown);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment