]> 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)
commit46d0d26efd77511f7b6213929d41c92497b5807f
treeffba839ea19dcf91d18ddfb45ddde88a7a1ee303
parent3ee28bda61ea3d80f3e07a4f819c5ca8db3d9096
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