* [PATCH] nvme-fc: Zero out SGL before submitting AEN
@ 2017-10-27 7:16 Hannes Reinecke
2017-10-27 17:47 ` James Smart
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Reinecke @ 2017-10-27 7:16 UTC (permalink / raw)
nvme_fc_start_fc_op() will be updating the SGL entries of the
sqe, so we need to zero those before resubmitting a received
AEN. Otherwise we trigger the WARN_ON() in nvme_fc_start_fc_op().
Signed-off-by: Hannes Reinecke <hare at suse.com>
---
drivers/nvme/host/fc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index b600c07..db0a7f6 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -2181,6 +2181,7 @@ enum {
{
struct nvme_fc_ctrl *ctrl = to_fc_ctrl(arg);
struct nvme_fc_fcp_op *aen_op;
+ struct nvme_command *sqe;
unsigned long flags;
bool terminating = false;
blk_status_t ret;
@@ -2197,6 +2198,8 @@ enum {
return;
aen_op = &ctrl->aen_ops[aer_idx];
+ sqe = &aen_op->cmd_iu.sqe;
+ memset(&sqe->common.dptr, 0, sizeof(union nvme_data_ptr));
ret = nvme_fc_start_fcp_op(ctrl, aen_op->queue, aen_op, 0,
NVMEFC_FCP_NODATA);
--
1.8.5.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] nvme-fc: Zero out SGL before submitting AEN
2017-10-27 7:16 [PATCH] nvme-fc: Zero out SGL before submitting AEN Hannes Reinecke
@ 2017-10-27 17:47 ` James Smart
0 siblings, 0 replies; 2+ messages in thread
From: James Smart @ 2017-10-27 17:47 UTC (permalink / raw)
On 10/27/2017 12:16 AM, Hannes Reinecke wrote:
> nvme_fc_start_fc_op() will be updating the SGL entries of the
> sqe, so we need to zero those before resubmitting a received
> AEN. Otherwise we trigger the WARN_ON() in nvme_fc_start_fc_op().
>
> Signed-off-by: Hannes Reinecke <hare at suse.com>
> ---
>
This patch is unnecessary. It was completely resolved by the following
patch which has been committed:
nvme-fc: use transport-specific sgl format
http://lists.infradead.org/pipermail/linux-nvme/2017-September/012723.html
-- james
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-27 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-27 7:16 [PATCH] nvme-fc: Zero out SGL before submitting AEN Hannes Reinecke
2017-10-27 17:47 ` James Smart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox