OSDN Git Service

nvme-fc: Add Disconnect Association Rcv support
authorJames Smart <jsmart2021@gmail.com>
Tue, 31 Mar 2020 16:49:54 +0000 (09:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:33 +0000 (16:18 -0600)
commit14fd1e98afafc0027a6a86ea1962e31dceafb400
tree94641f4cad9711f7ef39fa8fb2ec5391cffa1c76
parentec3b0e3cc393dee1ad3f4bd1026f2c1f8b1c1ffb
nvme-fc: Add Disconnect Association Rcv support

The nvme-fc host transport did not support the reception of a
FC-NVME LS. Reception is necessary to implement full compliance
with FC-NVME-2.

Populate the LS receive handler, and specifically the handling
of a Disconnect Association LS. The response to the LS, if it
matched a controller, must be sent after the aborts for any
I/O on any connection have been sent.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fc.c