diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2020-07-24 19:25:13 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-29 07:45:20 +0200 |
commit | df21b6b1934e89c2cc2bb1332146ed6c2df1321c (patch) | |
tree | 8f9a51e3d6f12306c571cfbf043501762c93abc4 /drivers/nvme/host/nvme.h | |
parent | nvme: clear any SGL flags in passthru commands (diff) | |
download | linux-df21b6b1934e89c2cc2bb1332146ed6c2df1321c.tar.xz linux-df21b6b1934e89c2cc2bb1332146ed6c2df1321c.zip |
nvme: create helper function to obtain command effects
Separate the code to obtain command effects from the code
to start a passthru request and move the nvme_passthru_start() and
nvme_passthru_end() functions up above nvme_submit_user_cmd() in order
that they may be used in a new helper a subsequent patch.
The new helper function will be necessary for nvmet passthru
code to determine if we need to change out of interrupt context
to handle the effects. It is exported in the NVME_TARGET_PASSTHRU
namespace.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 1609267a1f0e..25063f041f8d 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -790,4 +790,7 @@ void nvme_hwmon_init(struct nvme_ctrl *ctrl); static inline void nvme_hwmon_init(struct nvme_ctrl *ctrl) { } #endif +u32 nvme_command_effects(struct nvme_ctrl *ctrl, struct nvme_ns *ns, + u8 opcode); + #endif /* _NVME_H */ |