Hi Martin,
On 30/08/19, 4:22 AM, "Martin K. Petersen"
wrote:
>
>Saurav,
>
>> This series have bug fixes and improve the log messages for better
>> debugging.
>>
>> Kindly apply this series to scsi-queue at your earliest convenience.
>
>Applied to 5.4/scsi-queue. I fixed a warning in patch #8. Pl
cmd->device->host;
if (!sc_cmd->SCp.ptr) {
printk(KERN_ERR PFX "SCp.ptr is NULL\n");
return;
--
2.7.4
Hi,
Thanks for patch.
Acked-by: Saurav Kashyap
Thanks,
~Saurav
ctx.read_info.sgl_ctx.sgl;
sgl->mul_sgl.cur_sge_addr.lo = (u32)phys_addr;
--
2.7.4
Hi,
Thanks for patch.
Acked-by: Saurav Kashyap
Thanks,
~Saurav
t_header(skb, sizeof(struct fcoe_hdr));
- fh = (struct fc_frame_header *) skb_transport_header(skb);
fr = fcoe_dev_from_skb(skb);
fr->fr_dev = lport;
--
2.7.4
Hi,
Thanks for patch.
Acked-by: Saurav Kashyap
Thanks,
~Saurav
fails to
call ctrl_link_up.
Fix:
- while setting vlan_id use local variable and before setting vlan_id.
- call fcoe_ctlr_link_up in next iteration of fipvlan request.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 25 -
1 file changed, 12 insertions
- The current code doeesn't support 20Gbps speed for current
and supported speed, add support for the same.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_m
ck if any one of these 3 is valid and
if so, handle the CVL (basically switching from AND to OR). The port
name field is definitely expected to be valid always.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_fip.c | 28 +---
1 file changed, 17 insertions(+
- Add shutdown callback handler.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 6959f7c..a824bbb 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b
- Driver was wrongly interpreting the supported cap value
returned by qed.
Solution: Use QED define macros instead of OS defined for
interpreting supporting speeds.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 32 +++-
1 file changed, 27
- log s_id, d_id, type and command to the log message.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index 7377a53..27989b3 100644
--- a/drivers/scsi/qedf/qedf_io.c
- Update the driver version to 8.42.3.0
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_version.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_version.h b/drivers/scsi/qedf/qedf_version.h
index e57533d..b0e37af 100644
--- a/drivers
From: Nilesh Javali
Update module description.
Signed-off-by: Nilesh Javali
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 2d69860..6959f7c
Nilesh Javali (1):
qedf: Update module description string.
Saurav Kashyap (11):
qedf: Print message during bailout conditions.
qedf: Stop sending fipvlan request on unload.
qedf: Add shutdown callback handler.
qedf: Interpret supported caps value correctly.
qedf: Add support for 20
- Decrease the LL2 MTU size to 2500.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h | 1 +
drivers/scsi/qedf/qedf_main.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf.h b/drivers/scsi/qedf/qedf.h
index 5a02121..f3f399f 100644
--- a
]
[84790.865204] Call Trace:
[84790.865246] scsi_try_target_reset+0x2b/0x90 [scsi_mod]
[84790.865266] scsi_ioctl_reset+0x20f/0x2a0 [scsi_mod]
[84790.865284] scsi_ioctl+0x131/0x3a0 [scsi_mod]
Signed-off-by: Arun Easi
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 4 ++--
1 file
From: Hannes Reinecke
The list of rports might become stale, so we should rather traverse
the discovery list when trying relogin.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 39 +++
1 file changed, 7
- Prevent race where we're removing the module and we get link update
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 50b1fa8..ab9a932 100644
- Print messages during exiting condition to help
debugging.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_debugfs.c | 16 +--
drivers/scsi/qedf/qedf_els.c | 38 --
drivers/scsi/qedf/qedf_fip.c | 5 +++-
drivers/scsi/qedf/qedf_io.c | 58
- On some setups fipvlan can be retried for long duration
and the connection to switch was not there so it was not
getting any reply.
- During unload this thread was hanging.
Problem Resolution:
Check if unload is in progress then quit from fipvlan thread.
Signed-off-by: Saurav Kashyap
iled - release\n");
> spin_lock_bh(&tgt->tgt_lock);
>@@ -664,6 +663,7 @@ int bnx2fc_send_srr(struct bnx2fc_cmd *orig_io_req,
>u32 offset, u8 r_ctl)
> } else
> set_bit(BNX2FC_FLAG_SRR_SENT, &orig_io_req->req_flags);
>
>+srr_err:
> return rc;
> }
>
>--
>1.9.1
Thanks for the patch.
Asked-by: Saurav Kashyap
>
>
elease\n");
> spin_lock_bh(&tgt->tgt_lock);
>@@ -618,6 +617,7 @@ int bnx2fc_send_rec(struct bnx2fc_cmd *orig_io_req)
> spin_unlock_bh(&tgt->tgt_lock);
> kfree(cb_arg);
> }
>+rec_err:
> return rc;
> }
>
>--
>1.9.1
Thanks for the patch.
Acked-by: Saurav Kashyap
>
>
Hi Lin,
On 23/06/19, 7:28 AM, "linux-scsi-ow...@vger.kernel.org on behalf of Lin
Yi" wrote:
>if cb_arg alloc failed, we can't release orig_io_req refcount before
>we take it's refcount. call kref_get before malloc, so as to pair with
>the kref_put on the srr_err path.
>
>Signed-off-by: Lin Yi
Hi Lin,
On 23/06/19, 7:27 AM, "linux-scsi-ow...@vger.kernel.org on behalf of Lin
Yi" wrote:
>if cb_arg alloc failed, we can't release the struct orig_io_req refcount
>before we take it's refcount. call kref_get before malloc, so as to pair
>with kref_put on rec_err path.
>
>Signed-off-by: Lin Yi
- If firmware send any one of cleanup or abort completion, it means
other won't be send, clean out flags for other as well.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/bnx2fc/bnx2fc.h| 1 +
drivers/scsi/bnx2fc/bnx2fc_io.c | 32
2 files change
- Reduce the sg_tablesize to 255.
- Reduce the MAX BDs firmware can handle to 255.
- Return IO to ML if BD goes more then 255 after split.
- Correct the size of each BD split to 0x.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/bnx2fc/bnx2fc.h | 5 +++--
drivers/scsi/bnx2fc
e fix for this is to only take the extra put in bnx2fc_abts_cleanup if
the completion for the cleanup times out.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/bnx2fc/bnx2fc_io.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers
times out.
Saurav Kashyap (4):
bnx2fc: Separate out completion flags and variables for abort and
cleanup.
bnx2fc: Do not allow both a cleanup completion and abort completion
for the same request.
bnx2fc: Limit the IO size according to the FW capability.
bnx2fc: Update the driver
ame.
3. If there is no FCF-MAP the use the spec. default FCF-MAP and the
destination ID from the frame.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/bnx2fc/bnx2fc_els.c | 56
1 file changed, 40 insertions(+), 16 deleti
Update the driver version to 2.12.10.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/bnx2fc/bnx2fc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bnx2fc/bnx2fc.h b/drivers/scsi/bnx2fc/bnx2fc.h
index 170abe9..3b84db8 100644
--- a/drivers/scsi/bnx2fc/bnx2fc.h
- Separate out abort and cleanup flag and completion, to have better
understaning of what is getting processed.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/bnx2fc/bnx2fc.h | 6 ++--
drivers/scsi/bnx2fc/bnx2fc_io.c | 59 ++--
drivers/scsi/bnx2fc
for (i = 0; i < BNX2FC_NUM_ERR_BITS; i++) {
>- if (err_warn_bit_map & (u64) (1 << i)) {
>+ if (err_warn_bit_map & ((u64)1 << i)) {
> err_warn = i;
> break;
> }
>--
>2.20.1
Thanks for the Patch.
Acked-by: Saurav Kashyap
>
ct qedf_els_cb_arg *cb_arg = NULL;
>- u32 sid, r_a_tov;
>+ u32 r_a_tov;
> int rc;
>
> if (!orig_io_req) {
>@@ -635,7 +628,6 @@ static int qedf_send_srr(struct qedf_ioreq
>*orig_io_req, u32 offset, u8 r_ctl)
>
> qedf = fcport->qedf;
> lport = qedf->lport;
>- sid = fcport->sid;
> r_a_tov = lport->r_a_tov;
>
> QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "Sending SRR orig_io=%p, "
>--
>2.7.0
Thanks,
Acked-by: Saurav Kashyap
>
>
- Update the driver version to 8.37.25.20.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_version.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_version.h b/drivers/scsi/qedf/qedf_version.h
index 9a06a58..334a9cd 100644
--- a/drivers
From: Chad Dupuis
- Print LBA information for underrun cases.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
- Comment will help in decoding the logging level.
Signed-off-by: Saurav Kashyap
Signed-off-by: Chad Dupuis
---
drivers/scsi/qedf/qedf.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/scsi/qedf/qedf.h b/drivers/scsi/qedf/qedf.h
index f647817..2c08f6f 100644
--- a/drivers
From: Chad Dupuis
- Change the message to display load failure.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index
- Log the reason for start xmit failure.
Signed-off-by: Saurav Kashyap
Signed-off-by: Chad Dupuis
---
drivers/scsi/qedf/qedf_fip.c | 17 +++--
drivers/scsi/qedf/qedf_main.c | 7 ++-
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_fip.c b
From: Chad Dupuis
- port id will help in debugging.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index 29b456d
From: Chad Dupuis
- Printing scsi command pointer will help in crash dump analysis.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi
edf: Print scsi_cmd backpointer in good completion path if the
command is still being used.
qedf: Add LBA to underrun debug messages.
qedf: Add port_id for fcport into initiate_cleanup debug message.
Saurav Kashyap (7):
qedf: Add comment to display logging levels.
qedf: Check for fcoe_li
From: Saurav Kashyap
- Print the fcoe_libfc_config failure and return proper failure.
Signed-off-by: Saurav Kashyap
Signed-off-by: Chad Dupuis
---
drivers/scsi/qedf/qedf_main.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers
- print message on scsi_add_host failure.
Signed-off-by: Saurav Kashyap
Signed-off-by: Chad Dupuis
---
drivers/scsi/qedf/qedf_main.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index a527b9b..e2f3228
From: Chad Dupuis
- Add debugs node for driver stats.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_debugfs.c | 55 +---
1 file changed, 52 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_debugfs.c b
- Log fcport for which upload failed.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 1de2b18..ffe536e 100644
--- a/drivers/scsi/qedf
- Print return value of scsi_add_host on failure.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index ffe536e..5b07235 100644
--- a/drivers
This patch clears FC_RP_STARTED flag during logoff, because of
this re-login(flogi) didn't happen to the switch.
This reverts commit 1550ec458e0cf1a40a170ab1f4c46e3f52860f65.
---
drivers/scsi/libfc/fc_rport.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/libfc/fc_rport.c b/drive
_format vaf;
>- char nfunc[32];
>-
>- memset(nfunc, 0, sizeof(nfunc));
>- memcpy(nfunc, func, sizeof(nfunc) - 1);
>
> va_start(va, fmt);
>
>@@ -114,9 +98,9 @@ qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char
>*func, u32 line,
>
> if (likely(qedf) && likely(qedf->pdev))
> pr_info("[%s]:[%s:%d]:%d: %pV", dev_name(&(qedf->pdev->dev)),
>- nfunc, line, qedf->host_no, &vaf);
>+ func, line, qedf->host_no, &vaf);
> else
>- pr_info("[:00:00.0]:[%s:%d]: %pV", nfunc, line, &vaf);
>+ pr_info("[:00:00.0]:[%s:%d]: %pV", func, line, &vaf);
>
> ret:
> va_end(va);
>--
>2.20.1
Thanks,
Acked-by: Saurav Kashyap
>
Hi Martin,
We will take care from next time, thanks for the support.
Thanks,
~Saurav
-Original Message-
From: "Martin K. Petersen"
Organization: Oracle Corporation
Date: Thursday, 28 March 2019 at 7:43 AM
To: Saurav Kashyap
Cc: "martin.peter...@oracle.com" ,
&
- Update the driver version.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_version.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_version.h b/drivers/scsi/qedf/qedf_version.h
index 9455faa..9a06a58 100644
--- a/drivers/scsi/qedf
succeed, we drop
the reference and free the io_req. If we cannot, then the els will get
sent out and we will wait for 10 secs for it to complete.
Signed-off-by: Shyam Sundar
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h| 17 +++
drivers/scsi/qedf/qedf_i
- lport was getting used without initialization,
initialize it to fix a warning.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index b359ae3
- handle refcount of rdata during error conditions.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index db5d49e..b359ae3
cmd_type is over written to QEDF_CLEANUP during cleanup, so
check for tm_flags.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index 4a792ea..ca7ca8c
- Command is already completed with underrun so no
need to send ABTS.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index eeb96c7..889b300
From: Shyam Sundar
- The flag will help in to figure out if io_req is cleaned or not.
Signed-off-by: Shyam Sundar
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
From: Chad Dupuis
On completions where we do not have a bad scsi_cmnd pointer we should
return before the the label lest we do a double kref_put.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 1 +
1 file changed, 1 insertion(+)
diff --git a
- Check if link is UP before sending and processing any packets on wire.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_fip.c | 6 ++
drivers/scsi/qedf/qedf_main.c | 28 ++--
2 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/drivers/scsi
From: Chad Dupuis
- Check proper values before servicing CVL.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_fip.c | 66
1 file changed, 48 insertions(+), 18 deletions(-)
diff --git a/drivers/scsi/qedf
From: Chad Dupuis
- If a TMF and cleanup are issued at the same time they could cause a
call trace if issued against the same xid as the io_req->tm_done
completion is used for both.
- Set and clear cleanup bit in cleanup routine.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kash
From: Hannes Reinecke
qedf_xmit() calls fc_rport_lookup(), but discards the returned
rdata structure almost immediately without decreasing the refcount.
This leads to a refcount leak and the rdata never to be freed.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers
From: Hannes Reinecke
The fc_rport_priv structure is reference counted, so we need to
ensure that the reference is increased before accessing the structure.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 9 -
drivers/scsi/qedf
From: Shyam Sundar
- I/Os, aborts and tmf should not be queued if flush is in progress.
Signed-off-by: Shyam Sundar
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers
From: Chad Dupuis
- Wait for all the connections to get uploaded.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h | 4 ++-
drivers/scsi/qedf/qedf_fip.c | 4 +--
drivers/scsi/qedf/qedf_main.c | 60 ++-
3
From: Hannes Reinecke
fc_rport_create() needs to be called with disc_mutex held.
And we should re-assign the 'rdata' pointer in case it got changed.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 8 +++-
1 file changed, 7 insert
Shyam Sundar
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h | 6 +
drivers/scsi/qedf/qedf_els.c | 4 +
drivers/scsi/qedf/qedf_io.c | 285 ++
drivers/scsi/qedf/qedf_main.c | 8 +-
4 files changed
SGE
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h | 8 +--
drivers/scsi/qedf/qedf_debugfs.c | 2 -
drivers/scsi/qedf/qedf_io.c | 124 ---
3 files changed, 40 insertions(+), 94 deletions(-)
diff --git a/driv
From: Andrew Vasquez
- Correct memory barriers to make sure all cmnds are
flushed.
Signed-off-by: Andrew Vasquez
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b
RRQ is pending.
- Differentiate LUN/TARGET reset, as cleanup needs to be
send to firmware accordingly.
- Add flush mutex to sync cleanup call from abort and flush routine.
- Clear abort/outstanding bit on timeout.
Signed-off-by: Shyam Sundar
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav
From: Hannes Reinecke
test_bit() is atomic, test_bit() || test_bit() is not.
So protect consecutive bit tests with a lock to avoid races.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 4
drivers/scsi/qedf/qedf_main.c | 5 -
2 files
From: Chad Dupuis
- Check the validity of various pointers before processing.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 39 +--
1 file changed, 37 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi
d-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 3fd8107..dee6fef 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -3042,6 +3042,8 @@ s
2] RIP [] qedf_init_task.isra.16+0x3d/0x450
[qedf]
[30259.990630] RSP
[30259.994127] CR2: 0198
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qed
/0x3c0
[] ? manage_workers.isra.24+0x2a0/0x2a0
[] kthread+0xd1/0xe0
[] ? insert_kthread_work+0x40/0x40
[] ret_from_fork_nospec_begin+0x21/0x21
[] ? insert_kthread_work+0x40/0x40
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 16
1
: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h | 5 -
drivers/scsi/qedf/qedf_io.c | 6 +++---
drivers/scsi/qedf/qedf_main.c | 13 -
3 files changed, 7 insertions(+), 17 deletions(-)
diff --git a/drivers/scsi/qedf/qedf.h b/drivers/scsi/qedf/qedf.h
index 2c78d8f..8e75c21 100644
urn in qedf_scsi_done().
qedf: Check both the FCF and fabric ID before servicing clear virtual
link.
Hannes Reinecke (4):
qedf: missing kref_put in qedf_xmit()
qedf: fixup locking in qedf_restart_rport()
qedf: fixup bit operations.
qedf: fc_rport_priv reference counting fixes
Saurav Kash
Hi Martin,
I will provide an update patch list soon.
Thanks,
~Saurav
-Original Message-
From: "Martin K. Petersen"
Organization: Oracle Corporation
Date: Tuesday, 19 March 2019 at 5:32 AM
To: Saurav Kashyap , Chad Dupuis
Cc: "kbuild-...@01.org" , "m
Hi Martin,
Kindly share the latest update on this.
Thanks,
~Saurav
-Original Message-
From: Saurav Kashyap
Date: Tuesday, 5 March 2019 at 4:29 PM
To: "martin.peter...@oracle.com"
Cc: "qlogic-storage-upstr...@cavium.com" ,
"linux-scsi@vger.kernel.org"
- handle refcount of rdata during error conditions.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 26 +++---
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index d98f5f4..b9877f1
- Update the driver version.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_version.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_version.h b/drivers/scsi/qedf/qedf_version.h
index 9455faa..9a06a58 100644
--- a/drivers/scsi/qedf
- lport was getting used without initialization,
initialize it to fix a warning.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index b9877f1
succeed, we drop
the reference and free the io_req. If we cannot, then the els will get
sent out and we will wait for 10 secs for it to complete.
Signed-off-by: Shyam Sundar
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h| 17 +++
drivers/scsi/qedf/qedf_i
cmd_type is over written to QEDF_CLEANUP during cleanup, so
check for tm_flags.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index 90d1645..d8d55bc
From: Chad Dupuis
- Check proper values before servicing CVL.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_fip.c | 66
1 file changed, 48 insertions(+), 18 deletions(-)
diff --git a/drivers/scsi/qedf
From: Shyam Sundar
- I/Os, aborts and tmf should not be queued if flush is in progress.
Signed-off-by: Shyam Sundar
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers
- Command is already completed with underrun so no
need to send ABTS.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index 30932a8..5e7745e
From: Shyam Sundar
- The flag will help in to figure out if io_req is cleaned or not.
Signed-off-by: Shyam Sundar
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
From: Chad Dupuis
On completions where we do not have a bad scsi_cmnd pointer we should
return before the the label lest we do a double kref_put.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 1 +
1 file changed, 1 insertion(+)
diff --git a
From: Hannes Reinecke
The fc_rport_priv structure is reference counted, so we need to
ensure that the reference is increased before accessing the structure.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 9 -
drivers/scsi/qedf
d-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 3fd8107..dee6fef 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -3042,6 +3042,8 @@ s
From: Chad Dupuis
- Check the validity of various pointers before processing.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 39 +--
1 file changed, 37 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi
ore servicing clear virtual
link.
Hannes Reinecke (4):
qedf: missing kref_put in qedf_xmit()
qedf: fixup locking in qedf_restart_rport()
qedf: fixup bit operations.
qedf: fc_rport_priv reference counting fixes
Saurav Kashyap (7):
qedf: Modify abort and tmf handler to handle edge condit
From: Chad Dupuis
- If a TMF and cleanup are issued at the same time they could cause a
call trace if issued against the same xid as the io_req->tm_done
completion is used for both.
- Set and clear cleanup bit in cleanup routine.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kash
/0x3c0
[] ? manage_workers.isra.24+0x2a0/0x2a0
[] kthread+0xd1/0xe0
[] ? insert_kthread_work+0x40/0x40
[] ret_from_fork_nospec_begin+0x21/0x21
[] ? insert_kthread_work+0x40/0x40
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 16
1
- Check if link is UP before sending and processing any packets on wire.
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_fip.c | 6 ++
drivers/scsi/qedf/qedf_main.c | 28 ++--
2 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/drivers/scsi
: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h | 5 -
drivers/scsi/qedf/qedf_io.c | 6 +++---
drivers/scsi/qedf/qedf_main.c | 13 -
3 files changed, 7 insertions(+), 17 deletions(-)
diff --git a/drivers/scsi/qedf/qedf.h b/drivers/scsi/qedf/qedf.h
index 2c78d8f..8e75c21 100644
From: Hannes Reinecke
fc_rport_create() needs to be called with disc_mutex held.
And we should re-assign the 'rdata' pointer in case it got changed.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 8 +++-
1 file changed, 7 insert
From: Chad Dupuis
- Wait for all the connections to get uploaded.
Signed-off-by: Chad Dupuis
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf.h | 4 ++-
drivers/scsi/qedf/qedf_fip.c | 4 +--
drivers/scsi/qedf/qedf_main.c | 60 ++-
3
From: Hannes Reinecke
test_bit() is atomic, test_bit() || test_bit() is not.
So protect consecutive bit tests with a lock to avoid races.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_els.c | 4
drivers/scsi/qedf/qedf_main.c | 5 -
2 files
From: Andrew Vasquez
- Correct memory barriers to make sure all cmnds are
flushed.
Signed-off-by: Andrew Vasquez
Signed-off-by: Saurav Kashyap
---
drivers/scsi/qedf/qedf_io.c | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/qedf/qedf_io.c b
From: Hannes Reinecke
qedf_xmit() calls fc_rport_lookup(), but discards the returned
rdata structure almost immediately without decreasing the refcount.
This leads to a refcount leak and the rdata never to be freed.
Signed-off-by: Hannes Reinecke
Signed-off-by: Saurav Kashyap
---
drivers
1 - 100 of 544 matches
Mail list logo