• James Smart's avatar
    nvmet-fc: Add Disconnect Association Xmt support · 47bf3241
    James Smart authored
    As part of FC-NVME-2 (and ammendment on FC-NVME), the target is to
    send a Disconnect LS after an association is terminated and any
    exchanges for the association have been ABTS'd. The target is also
    not to send the receipt to any Disconnect Association LS, received
    to initiate the association termination or received while the
    association is terminating, until the Disconnect LS has been transmit.
    
    Add support for sending Disconnect Association LS after all I/O's
    complete (which is after ABTS'd certainly). Utilizes the new LLDD
    api to send ls requests.
    
    There is no need to track the Disconnect LS response or to retry
    after timeout. All spec requirements will have been met by waiting
    for i/o completion to initiate the transmission.
    
    Add support for tracking the reception of Disconnect Association
    and defering the response transmission until after the Disconnect
    Association LS has been transmit.
    Signed-off-by: default avatarJames Smart <jsmart2021@gmail.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    47bf3241
fc.c 78.6 KB