]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/nvme/host/fc.c
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)
commitc5760f300e25f7d2cea9a9002b1e058a5c18b73f
tree6c3e5267f86d04d64ef66d43cd5dc008e7d14377
parent84fef62d135b6e47b52f4e9280b5dbc5bb0050ba
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