]> 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)
commit3443cfd29b83ce940548f4982ec4783f11968698
tree6c3e5267f86d04d64ef66d43cd5dc008e7d14377
parent16da0e12e1b366fee9e5e2c25ae4f3cfee4d1d49
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