nvmet_fc: add req_release to lldd api
authorJames Smart <jsmart2021@gmail.com>
Tue, 11 Apr 2017 18:32:29 +0000 (11:32 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 14:41:49 +0000 (16:41 +0200)
commit19b58d9473e8e3d38e7f3602a07c8febfbd07bc1
treeffba839ea19dcf91d18ddfb45ddde88a7a1ee303
parent39498faef7c02f9f6de4060ccdc7e8975a6e690b
nvmet_fc: add req_release to lldd api

With the advent of the opdone calls changing context, the lldd can no
longer assume that once the op->done call returns for RSP operations
that the request struct is no longer being accessed.

As such, revise the lldd api for a req_release callback that the
transport will call when the job is complete. This will also be used
with abort cases.

Fixed text in api header for change in io complete semantics.

Revised lpfc to support the new req_release api.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/fc.c
drivers/nvme/target/fcloop.c
drivers/scsi/lpfc/lpfc_nvmet.c
drivers/scsi/lpfc/lpfc_nvmet.h
include/linux/nvme-fc-driver.h