Re: [PATCH v2] nvme-tcp: Check if request has started before processing it

2021-03-31 Thread Ewan D. Milne
On Wed, 2021-03-31 at 09:11 +0200, Hannes Reinecke wrote: > On 3/31/21 1:28 AM, Keith Busch wrote: > > On Tue, Mar 30, 2021 at 10:34:25AM -0700, Sagi Grimberg wrote: > > > > > > > > It is, but in this situation, the controller is sending a > > > > > second > > > > > completion that results in a us

Re: [PATCH] nvme: Export fast_io_fail_tmo to sysfs

2021-03-31 Thread Ewan D. Milne
io_fail_tmo, S_IRUGO | S_IWUSR, > + nvme_ctrl_fast_io_fail_tmo_show, > nvme_ctrl_fast_io_fail_tmo_store); > + > static struct attribute *nvme_dev_attrs[] = { > &dev_attr_reset_controller.attr, > &dev_attr_rescan_controller.attr, > @@ -3715,6 +3745,7 @@ static struct attribute *nvme_dev_attrs[] = { > &dev_attr_hostid.attr, > &dev_attr_ctrl_loss_tmo.attr, > &dev_attr_reconnect_delay.attr, > + &dev_attr_fast_io_fail_tmo.attr, > NULL > }; > Thanks. Reviewed-by: Ewan D. Milne

Re: [PATCH v2] nvme-tcp: Check if request has started before processing it

2021-03-30 Thread Ewan D. Milne
On Mon, 2021-03-15 at 10:16 -0700, Sagi Grimberg wrote: > > Hi Sagi, > > > > On Fri, Mar 05, 2021 at 11:57:30AM -0800, Sagi Grimberg wrote: > > > Daniel, again, there is nothing specific about this to nvme-tcp, > > > this is a safeguard against a funky controller (or a different > > > bug that is

Re: md/dm-mpath: check whether all pgpaths have same uuid in multipath_ctr()

2021-03-23 Thread Ewan D. Milne
On Tue, 2021-03-23 at 15:47 +0800, lixiaokeng wrote: > > On 2021/3/22 22:22, Mike Snitzer wrote: > > On Mon, Mar 22 2021 at 4:11am -0400, > > Christoph Hellwig wrote: > > > > > On Sat, Mar 20, 2021 at 03:19:23PM +0800, Zhiqiang Liu wrote: > > > > From: Zhiqiang Liu > > > > > > > > When we mak

Re: [PATCH] scsi_logging: print cdb into new line after opcode

2021-01-22 Thread Ewan D. Milne
On Fri, 2021-01-22 at 09:39 +0100, Martin Kepplinger wrote: > The current log message results in a line like the following where > the first byte is duplicated, giving a wrong impression: > > sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 60 40 00 00 01 > 00 > > Print the cdb into a new lin

Re: [PATCH][next] scsi: pm8001: remove space in a debug message

2020-11-24 Thread Ewan D. Milne
ite Data Parity Check Enableis set > to = 0x%x\n", > +"GSM 0x700048 - Write Data Parity Check Enable is > set to = 0x%x\n", > pm8001_cr32(pm8001_ha, 2, > GSM_WRITE_DATA_PARITY_CHECK)); > > /* step 13: bring the IOP and AAP1 out of reset */ Reviewed-by: Ewan D. Milne

Re: [PATCH v2] scsi: fcoe: add missed kfree() in an error path

2020-07-13 Thread Ewan D. Milne
See below. On Thu, 2020-07-09 at 20:05 +0800, Jing Xiangfeng wrote: > fcoe_fdmi_info() misses to call kfree() in an error path. > Add a label 'free_fdmi' and jump to it. > > Fixes: f07d46bbc9ba ("fcoe: Fix smatch warning in fcoe_fdmi_info > function") > Signed-off-by: Jing Xiangfeng > --- > dri

Re: [PATCH] scsi: associate bio write hint with WRITE CDB

2019-01-03 Thread Ewan D. Milne
On Thu, 2019-01-03 at 16:00 -0500, Douglas Gilbert wrote: > On 2019-01-03 4:47 a.m., Randall Huang wrote: > > On Wed, Jan 02, 2019 at 11:51:33PM -0800, Christoph Hellwig wrote: > > > On Wed, Dec 26, 2018 at 12:15:04PM +0800, Randall Huang wrote: > > > > In SPC-3, WRITE(10)/(16) support grouping fun

Re: [PATCH] scsi: libfc: fix incorrect variable assingment

2017-05-12 Thread Ewan D. Milne
NAB; > - rjt_data.reason = ELS_EXPL_INSUF_RES; > + rjt_data.explan = ELS_EXPL_INSUF_RES; > fc_seq_els_rsp_send(in_fp, ELS_LS_RJT, &rjt_data); > goto drop; > } s/assingment/assignment/ Reviewed-by: Ewan D. Milne

Re: [PATCH v4] sd: Ignore sync cache failures when not supported

2017-05-11 Thread Ewan D. Milne
turn ret; > + > + /* > + * sshdr.sense_key == ILLEGAL_REQUEST means this drive > + * doesn't support sync. There's not much to do and > + * suspend shouldn't fail. > + */ > + ret = 0; > } > } > > @@ -3359,7 +3376,6 @@ static int sd_suspend_common(struct device *dev, bool > ignore_stop_errors) > ret = 0; > } > > -done: > return ret; > } > Reviewed-by: Ewan D. Milne

Re: [PATCH v3] sd: Ignore sync cache failures when not supported

2017-05-09 Thread Ewan D. Milne
On Tue, 2017-05-09 at 17:43 +0200, Thierry Escande wrote: > From: Derek Basehore > > Some external hard drives don't support the sync command even though the > hard drive has write cache enabled. In this case, upon suspend request, > sync cache failures are ignored if the error code in the sense

Re: [PATCH] scsi: qedi: select UIO

2017-01-10 Thread Ewan D. Milne
On Tue, 2017-01-10 at 16:27 +0100, Arnd Bergmann wrote: > The newly added qedi driver links against the UIO framework, but can > be built without that: > > drivers/scsi/qedi/qedi_main.o: In function `qedi_free_uio': > qedi_main.c:(.text.qedi_free_uio+0x78): undefined reference to > `uio_unregiste

Re: [PATCH] snic: Return error code on memory allocation failure

2016-12-21 Thread Ewan D. Milne
HOST_ERR(shost, "snic tmreq info pool creation failed.\n"); > > + ret = -ENOMEM; > goto err_free_max_sgl_pool; > } > Reviewed-by: Ewan D. Milne

Re: [RESEND PATCH v2 2/2] scsi: Add intermediate STARGET_REMOVE state to scsi_target_state

2016-03-30 Thread Ewan D. Milne
_target_destroy() indicating this target is going to be removed. > > Signed-off-by: Johannes Thumshirn > Fixes: 40998193560dab6c3ce8d25f4fa58a23e252ef38 > Cc: sta...@vger.kernel.org > Reviewed-by: Hannes Reinecke > Reviewed-by: Ewan D. Milne > --- > > Changes from v1: > *

Re: [RESEND PATCH v2 1/2] Revert "scsi: fix soft lockup in scsi_remove_target() on module removal"

2016-03-30 Thread Ewan D. Milne
continue; > if (starget->dev.parent == dev || &starget->dev == dev) { > kref_get(&starget->reap_ref); > - last_target = starget; > spin_unlock_irqrestore(shost->host_lock, flags); > __scsi_remove_target(starget); > scsi_target_reap(starget); Reviewed-by: Ewan D. Milne

Re: [PATCH] scsi: Add intermediate STARGET_REMOVE state to scsi_target_state

2016-03-24 Thread Ewan D. Milne
NG, > + STARGET_REMOVE, > STARGET_DEL, > }; > This looks fine. Do we still need 90a88d6ef (scsi: fix soft lockup in scsi_remove_target() on module removal) or can that be reverted now, since the STARGET_REMOVE state will allow the iteration to continue? Reviewed-by: Ewan D. Milne

Re: [PATCH] qla2xxx: avoid maybe_uninitialized warning

2016-03-19 Thread Ewan D. Milne
On Wed, 2016-03-16 at 16:03 +0100, Tomas Henzl wrote: > On 15.3.2016 22:40, Arnd Bergmann wrote: > > The qlt_check_reserve_free_req() function produces an incorrect warning > > when CONFIG_PROFILE_ANNOTATED_BRANCHES is set: > > > > drivers/scsi/qla2xxx/qla_target.c: In function 'qlt_check_reserve_f

Re: [PATCH] scsi: fc: use get/put_unaligned64 for wwn access

2016-03-19 Thread Ewan D. Milne
> - wwn[2] = (inm >> 40) & 0xff; > - wwn[3] = (inm >> 32) & 0xff; > - wwn[4] = (inm >> 24) & 0xff; > - wwn[5] = (inm >> 16) & 0xff; > - wwn[6] = (inm >> 8) & 0xff; > - wwn[7] = inm & 0xff; > + put_unaligned_be64(inm, wwn); > } > > /** It would be nice to get rid of these functions completely and just change the callers to use get/put_unaligned_be64() directly, like libfc does, but that involves changing 7 drivers and scsi_transport_fc. Reviewed-by: Ewan D. Milne

[PATCH v3] mptbase: fixup error handling paths in mpt_attach()

2016-02-23 Thread Ewan D. Milne
From: "Ewan D. Milne" mpt_attach() was not checking for the failure to create fw_event_q. Also, iounmap() was not being called in all error cases after ioremap() had been called by mpt_mapresources(). Reported-by: Insu Yun Reviewed-by: Tomas Henzl Signed-off-by: Ewan D. Milne --