]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/nvme-core.c
NVMe: Fix command setup on IO retry
authorKeith Busch <keith.busch@intel.com>
Thu, 4 Dec 2014 00:07:13 +0000 (17:07 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 4 Dec 2014 02:10:45 +0000 (19:10 -0700)
commit9af8785a38d4528d6675247f873b0f1ae29f3be8
tree65f7044e066a022c8d722e184ca1fcd2986b512f
parent709c8667ada1fa26ac941bb875892afc0046b3e2
NVMe: Fix command setup on IO retry

On retry, the req->special is pointing to an already setup IOD, but we
still need to setup the command context and callback, otherwise you'll
see false twice completed errors and leak requests.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c