]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: fix localport resume using stale values
authorJames Smart <jsmart2021@gmail.com>
Fri, 3 Nov 2017 15:13:16 +0000 (08:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commit5201054ff65d3f0be1439ef4cdcbb9bd467b0ee7
tree6c3e5267f86d04d64ef66d43cd5dc008e7d14377
parent13329f5e27492a01ba37907262b73e1e88a735bf
nvme-fc: fix localport resume using stale values

The localport resume was not updating the lldd ops structure. If the
lldd is unloaded and reloaded, the ops pointers will differ.

Additionally, as there are device references taken by the localport,
ensure that resume only resumes if the device matches as well.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fc.c