]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9eea84a1c5e47463d8bcc8d6d955f3a78a33b2e
treeffba839ea19dcf91d18ddfb45ddde88a7a1ee303
parent7dce6f668ec17ec85831a6b417a68f1f56958221
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