Re: DISABLE_CLUSTERING in scsi drivers

2018-12-03 Thread Hannes Reinecke
On 12/2/18 11:13 PM, Finn Thain wrote: On Sun, 2 Dec 2018, Hannes Reinecke wrote: On 12/2/18 10:21 PM, Finn Thain wrote: On Sun, 2 Dec 2018, Hannes Reinecke wrote: Well, that lone 'kmap' is due to a quirk/errata in the datasheet; essentially we have to PIO a lone byte out of the FIFO

Re: DISABLE_CLUSTERING in scsi drivers

2018-12-02 Thread Hannes Reinecke
On 12/2/18 10:21 PM, Finn Thain wrote: On Sun, 2 Dec 2018, Hannes Reinecke wrote: Well, that lone 'kmap' is due to a quirk/errata in the datasheet; essentially we have to PIO a lone byte out of the FIFO to clear it up. And this byte is technically still part of the SCSI data, so we need

Re: DISABLE_CLUSTERING in scsi drivers

2018-12-02 Thread Hannes Reinecke
On 11/26/18 10:46 AM, Finn Thain wrote: On Mon, 26 Nov 2018, Christoph Hellwig wrote: On Thu, Nov 22, 2018 at 09:02:13AM +1100, Finn Thain wrote: you in the To list maintain or wrote SCSI drivers that set the DISABLE_CLUSTERING flag, which basically disable merges of any bio segments. We

Re: [PATCH v5 5/5] target: perform t10_wwn ID initialisation in target_alloc_device()

2018-12-01 Thread Hannes Reinecke
On 12/1/18 12:34 AM, David Disseldorp wrote: Initialise the t10_wwn vendor, model and revision defaults when a device is allocated instead of when it's enabled. This ensures that custom vendor or model strings set prior to enablement are not later overwritten with default values. Signed-off-by:

Re: [PATCH v5 4/5] target: remove hardcoded T10 Vendor ID in INQUIRY response

2018-12-01 Thread Hannes Reinecke
ers/target/target_core_spc.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) I would have merged it with the previous patch, but anyway: Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v5 3/5] target: add device vendor_id configfs attribute

2018-12-01 Thread Hannes Reinecke
en wanting to do this for a long time now ... Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v5 2/5] target: consistently null-terminate t10_wwn strings

2018-12-01 Thread Hannes Reinecke
- drivers/target/target_core_spc.c | 7 ++--- drivers/target/target_core_stat.c | 32 +-- include/target/target_core_base.h | 14 +++--- 6 files changed, 61 insertions(+), 73 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v5 1/5] target: use consistent left-aligned ASCII INQUIRY data

2018-12-01 Thread Hannes Reinecke
-by: David Disseldorp Reviewed-by: Christoph Hellwig Reviewed-by: Bryant G. Ly Reviewed-by: Lee Duncan --- drivers/target/target_core_spc.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 16/23] zfcp: use enum zfcp_erp_steps for struct zfcp_erp_action.step

2018-11-16 Thread Hannes Reinecke
On 11/16/18 3:19 PM, Steffen Maier wrote: On 11/16/2018 12:17 PM, Hannes Reinecke wrote: On 11/8/18 3:44 PM, Steffen Maier wrote: Use the already defined enum for this purpose to get at least some build checking (even though an enum is type equivalent to an int in C). v2.6.27 commit

Re: [PATCH v2] megaraid_sas: Add support for MegaRAID Aero controllers

2018-11-16 Thread Hannes Reinecke
| 4 drivers/scsi/megaraid/megaraid_sas_base.c | 15 +++ 2 files changed, 19 insertions(+) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053

Re: [PATCH 23/23] zfcp: drop old default switch case which might paper over missing case

2018-11-16 Thread Hannes Reinecke
default: - return NULL; } WARN_ON_ONCE(erp_action->adapter != adapter); Same here. If you don't expect the code to run into this case, please do add a WARN_ON() or something so that it can be tracked down. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage

Re: [PATCH 22/23] zfcp: drop default switch case which might paper over missing case

2018-11-16 Thread Hannes Reinecke
need = 0; - break; } return need; If you 'should' not run through this code path, doesn't it warrant a WARN_ON() or something? Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49

Re: [PATCH 21/23] zfcp: silence -Wimplicit-fallthrough in zfcp_erp_lun_strategy()

2018-11-16 Thread Hannes Reinecke
/* already closed, fall through */ + /* already closed */ + /* fall through */ case ZFCP_ERP_STEP_LUN_CLOSING: if (atomic_read(_sdev->status) & ZFCP_STATUS_COMMON_OPEN) return ZFCP_ERP_FAILED; Review

Re: [PATCH 19/23] zfcp: silence all W=1 build warnings for existing kdoc

2018-11-16 Thread Hannes Reinecke
+- drivers/s390/scsi/zfcp_fsf.c | 14 +- drivers/s390/scsi/zfcp_qdio.c | 3 +-- 5 files changed, 22 insertions(+), 16 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@sus

Re: [PATCH 20/23] zfcp: silence remaining kdoc warnings in header files

2018-11-16 Thread Hannes Reinecke
deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmany

Re: [PATCH 18/23] zfcp: properly format LUN (and WWPN) for LUN sharing violation kmsg

2018-11-16 Thread Hannes Reinecke
zfcp_scsi_dev_lun(sdev), (unsigned long long)zfcp_sdev->port->wwpn, Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 7405

Re: [PATCH 17/23] zfcp: use enum zfcp_erp_act_result for argument/return of affected functions

2018-11-16 Thread Hannes Reinecke
unlock: write_unlock_irqrestore(>erp_lock, flags); - if (retval != ZFCP_ERP_CONTINUES) - zfcp_erp_action_cleanup(erp_action, retval); + if (result != ZFCP_ERP_CONTINUES) + zfcp_erp_action_cleanup(erp_action, result); kref_put(>ref, zfcp

Re: [PATCH 16/23] zfcp: use enum zfcp_erp_steps for struct zfcp_erp_action.step

2018-11-16 Thread Hannes Reinecke
cify all remaining cases, so 'default:' seems to match here pretty well ... Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J.

Re: [PATCH 15/23] zfcp: the action field of zfcp_erp_action is actually the type

2018-11-16 Thread Hannes Reinecke
wed-by: Benjamin Block --- drivers/s390/scsi/zfcp_dbf.c | 2 +- drivers/s390/scsi/zfcp_def.h | 20 +++- drivers/s390/scsi/zfcp_erp.c | 77 +--- 3 files changed, 56 insertions(+), 43 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hann

Re: [PATCH 14/23] zfcp: clarify function argument name for trace tag string

2018-11-16 Thread Hannes Reinecke
gned-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_erp.c | 92 ++- drivers/s390/scsi/zfcp_ext.h | 8 ++-- drivers/s390/scsi/zfcp_qdio.c | 8 ++-- 3 files changed, 57 insertions(+), 51 deletions(-) Reviewed-by: Hannes R

Re: [PATCH 13/23] zfcp: ERP thread setup kdoc update

2018-11-16 Thread Hannes Reinecke
up - Start ERP thread for adapter * @adapter: Adapter to start the ERP thread for * - * Returns 0 on success or error code from kernel_thread() + * Return: 0 on success, or error code from kthread_run(). */ int zfcp_erp_thread_setup(struct zfcp_adapter *adapter) { Reviewed-by: Hanne

Re: [PATCH 12/23] zfcp: update kernel message for invalid FCP_CMND length, it's not the CDB

2018-11-16 Thread Hannes Reinecke
req->qtcb->bottom.io.fcp_cmnd_length); zfcp_erp_adapter_shutdown(req->adapter, 0, "fssfch4"); req->status |= ZFCP_STATUS_FSFREQ_ERROR; break; Really? You're only fixing the message, not the adapter behaviour. Ca

Re: [PATCH 11/23] zfcp: drop duplicate seq_no from zfcp_fsf_req which is also in QTCB header

2018-11-16 Thread Hannes Reinecke
Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_dbf.c | 2 +- drivers/s390/scsi/zfcp_def.h | 2 -- drivers/s390/scsi/zfcp_fsf.c | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) Makes one wonder what we need the sequence number for ... Reviewed-by: Hannes Reinecke

Re: [PATCH 10/23] zfcp: drop duplicate fsf_command from zfcp_fsf_req which is also in QTCB header

2018-11-16 Thread Hannes Reinecke
4 ++-- drivers/s390/scsi/zfcp_def.h | 7 +-- drivers/s390/scsi/zfcp_fsf.c | 14 ++ drivers/s390/scsi/zfcp_scsi.c | 4 +++- 5 files changed, 20 insertions(+), 17 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Stor

Re: [PATCH 09/23] zfcp: drop unnecessary forward prototype for struct zfcp_fsf_req

2018-11-16 Thread Hannes Reinecke
; /* requested action code */ Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upm

Re: [PATCH 07/23] zfcp: namespace prefix for internal latency data structures

2018-11-16 Thread Hannes Reinecke
| 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg G

Re: [PATCH 08/23] zfcp: group sort internal structure definitions for proximity

2018-11-16 Thread Hannes Reinecke
-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_def.h | 58 ++-- 1 file changed, 29 insertions(+), 29 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networki

Re: [PATCH 06/23] zfcp: update width in comment for ZFCP_COMMON_FLAGS mask

2018-11-16 Thread Hannes Reinecke
is a mask for bitwise 'and' with status values. */ #define ZFCP_COMMON_FLAGS 0xfff0 Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 S

Re: [PATCH 05/23] zfcp: move scsi_eh & non-ERP timeout defines owned by and local to zfcp_fsf.c

2018-11-16 Thread Hannes Reinecke
nitialized by scsi_device->eh_timeout ... But that's probably something for a bigger review affecting all drivers. Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688

Re: [PATCH 04/23] zfcp: drop unnecessary forward prototype for struct zfcp_reqlist

2018-11-16 Thread Hannes Reinecke
t;zfcp_qdio.h" -struct zfcp_reqlist; - /* SCSI SPECIFIC DEFINES */ #define ZFCP_SCSI_ER_TIMEOUT(10*HZ) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Sto

Re: [PATCH 03/23] zfcp: move SG table helper from aux to fc and make them static

2018-11-16 Thread Hannes Reinecke
ons(+), 45 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild,

Re: [PATCH 02/22] zfcp: remove unnecessary null pointer check before mempool_destroy

2018-11-16 Thread Hannes Reinecke
`pool' pointer in mempool_destroy()")] Signed-off-by: Steffen Maier --- drivers/s390/scsi/zfcp_aux.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networkin

Re: [PATCH] scsi: lpfc: fix block guard enablement on SLI3 adapters

2018-11-16 Thread Hannes Reinecke
LPFC_SLI3_CRP_ENABLED | - LPFC_SLI3_BG_ENABLED | LPFC_SLI3_DSS_ENABLED); if (rc != MBX_SUCCESS) { lpfc_printf_log(phba, KERN_ERR, LOG_INIT, Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH] qla2xxx: Add SysFS hook for FC-NVMe autoconnect

2018-11-15 Thread Hannes Reinecke
On 11/15/18 5:40 PM, Ewan D. Milne wrote: On Thu, 2018-11-15 at 13:52 +0100, Hannes Reinecke wrote: On 11/14/18 6:13 PM, Ewan D. Milne wrote: On Tue, 2018-11-13 at 09:49 -0800, Bart Van Assche wrote: On Tue, 2018-11-13 at 17:38 +, Madhani, Himanshu wrote: On Nov 13, 2018, at 6:23 AM

Re: [PATCH] qla2xxx: Add SysFS hook for FC-NVMe autoconnect

2018-11-15 Thread Hannes Reinecke
OT_ do this; better rely on common mechanisms here. And please, next time please cc linux-nvme so that we can track it better. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LIN

Re: [PATCH 12/12] lpfc: update driver version to 12.0.0.8

2018-11-04 Thread Hannes Reinecke
. * ***/ -#define LPFC_DRIVER_VERSION "12.0.0.7" +#define LPFC_DRIVER_VERSION "12.0.0.8" #define LPFC_DRIVER_NAME "lpfc" /* Used for SLI 2/3 */ Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Sto

Re: [PATCH 11/12] lpfc: add Trunking support

2018-11-04 Thread Hannes Reinecke
/scsi/lpfc/lpfc_sli.c | 11 +++ drivers/scsi/lpfc/lpfc_sli4.h| 13 12 files changed, 474 insertions(+) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911

Re: [PATCH 10/12] lpfc: Implement GID_PT on Nameserver query to support faster failover

2018-10-29 Thread Hannes Reinecke
+ drivers/scsi/lpfc/lpfc_els.c | 10 +- drivers/scsi/lpfc/lpfc_hbadisc.c | 29 ++ drivers/scsi/lpfc/lpfc_hw.h| 1 + drivers/scsi/lpfc/lpfc_hw4.h | 4 + drivers/scsi/lpfc/lpfc_nportdisc.c | 13 ++- 9 files changed, 275 insertions(+), 4 deletions(-) Reviewed-by: Hannes

Re: [PATCH 09/12] lpfc: Correct loss of fc4 type on remote port address change

2018-10-29 Thread Hannes Reinecke
in this area as well. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 27 +++ drivers/scsi/lpfc/lpfc_nportdisc.c | 5 +++-- 2 files changed, 26 insertions(+), 6 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 08/12] lpfc: Fix odd recovery in duplicate FLOGIs in point-to-point

2018-10-29 Thread Hannes Reinecke
| 1 + drivers/scsi/lpfc/lpfc_els.c | 66 drivers/scsi/lpfc/lpfc_hbadisc.c | 9 ++ 3 files changed, 64 insertions(+), 12 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 07/12] lpfc: Correct LCB RJT handling

2018-10-29 Thread Hannes Reinecke
l_els_rsp; phba->fc_stat.elsXmitLSRJT++; rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, elsiocb, 0); Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 06/12] lpfc: fcoe: Fix link down issue after 1000+ link bounces

2018-10-29 Thread Hannes Reinecke
to be related to not performing FCF discovery between FLOGI's. Fix by monitoring FLOGI failures and once a repeated error is seen repeat FCF discovery. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 05/12] lpfc: Correct errors accessing fw log

2018-10-29 Thread Hannes Reinecke
to dynamically update. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_bsg.c | 64 +--- 1 file changed, 25 insertions(+), 39 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 04/12] lpfc: Reset link or adapter instead of doing infinite nameserver PLOGI retry

2018-10-29 Thread Hannes Reinecke
insertions(+), 1 deletion(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 03/12] lpfc: Fix LOGO/PLOGI handling when triggerd by ABTS Timeout event

2018-10-29 Thread Hannes Reinecke
| 49 -- drivers/scsi/lpfc/lpfc_nportdisc.c | 5 2 files changed, 26 insertions(+), 28 deletions(-) Good point about being able to ignore LOGO failures :-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 02/12] lpfc: Fix lpfc_sli4_read_config return value check

2018-10-29 Thread Hannes Reinecke
phba); if (vports != NULL) { Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 01/12] lpfc: Correct speeds on SFP swap

2018-10-29 Thread Hannes Reinecke
(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 0/3] sd: Rely on the driver core for asynchronous probing

2018-10-26 Thread Hannes Reinecke
testing here. I've found that testing on large configurations on iSER or SRP tend to excite the issues. Can you check against those, too? I'll see to give it a spin on my test bed. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@sus

Re: Looking for some help understanding error handling

2018-10-22 Thread Hannes Reinecke
On 10/22/18 10:17 AM, John Garry wrote: On 19/10/2018 17:46, chris.mo...@microchip.com wrote: -Original Message- From: linux-scsi-ow...@vger.kernel.org On Behalf Of John Garry Sent: Friday, October 19, 2018 2:19 AM To: Chris Moore - C33997 ; h...@suse.de; linux-scsi@vger.kernel.org;

Re: [PATCH] scsi: myrs: fix build failure on 32 bit

2018-10-19 Thread Hannes Reinecke
devsize); } raid_set_resync(myrs_raid_template, dev, percent_complete); } Thanks James. Reviewed-by: Hannes Reinecke Cheers, Hannes

[PATCHv2] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Hannes Reinecke
The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE at that time, so no new commands can be submitted via srp_queuecommand() Signed-off-by: Hannes Reinecke Reviewed-by: Jens Axboe Reviewed-by: Johannes Thumshirn --- drivers/infiniband/ulp/srp/ib_srp.c | 7 --- 1

[PATCH] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Hannes Reinecke
The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE at that time, so no new commands can be submitted via srp_queuecommand() Signed-off-by: Hannes Reinecke Reviewed-by: Jens Axboe Reviewed-by: Johannes Thumshirn --- drivers/infiniband/ulp/srp/ib_srp.c | 7

Re: [PATCH] scsi_error: Remove scsi_block_when_processing_errors: message

2018-10-17 Thread Hannes Reinecke
1 Indeed. Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu,

Re: [PATCH v3 11/11] block: Introduce blk_revalidate_disk_zones()

2018-10-12 Thread Hannes Reinecke
-- include/linux/blkdev.h| 7 ++ 9 files changed, 194 insertions(+), 198 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH v3 05/11] block: Limit allocation of zone descriptors for report zones

2018-10-12 Thread Hannes Reinecke
request. Signed-off-by: Damien Le Moal Reviewed-by: Christoph Hellwig --- block/blk-zoned.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@sus

Re: [PATCH v3 03/11] scsi: sd_zbc: Fix sd_zbc_check_zones() error checks

2018-10-12 Thread Hannes Reinecke
goto err; + } /* The drive satisfies the kernel restrictions: set it up */ ret = sd_zbc_setup(sdkp, zone_blocks); Remaining bits are okay. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49

[PATCH] lpfc: fixup crash in lpfc_els_unsol_buffer()

2018-10-09 Thread Hannes Reinecke
lpfc_nlp_get() in lpfc_els_unsol_buffer() is not running under a lock, so there is a chance that it might actually fail. But as we never check the return value we'll get a crash in lpfc_nlp_put() later on trying to free an invalid buffer. Signed-off-by: Hannes Reinecke --- drivers/scsi/lpfc

Re: [PATCH 1/3] scsi: Allow state transitions from OFFLINE to BLOCKED

2018-10-09 Thread Hannes Reinecke
ecking the device after RSCN is a sensible choice. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D.

[PATCH 1/3] scsi: Allow state transitions from OFFLINE to BLOCKED

2018-10-07 Thread Hannes Reinecke
From: Hannes Reinecke When an RSCN gets delayed (or not being sent at all) the transport class will detect an error, EH kicks in, and eventually will be setting the device to offline. If we receive an RSCN after that the device will stay in 'offline'. This patch allows for an 'offline

[PATCH 3/3] libfc: retry PRLI if we cannot analyse the payload

2018-10-07 Thread Hannes Reinecke
From: Hannes Reinecke When we fail to analyse the payload of a PRLI response we should reset the state machine to retry the PRLI; eventually we will be getting a proper frame. Not doing so will result in a stuck state machine and the port never to be presented to the systsm. Suggested-by: Chad

[PATCH 0/3] libfc state machine fixes

2018-10-07 Thread Hannes Reinecke
from OFFLINE to BLOCKED, as during RSCN processing the devices will be set to blocked, and so I found it only reasonable to allow this transition. But as usual, comments and reviews are welcome. Hannes Reinecke (2): scsi: Allow state transitions from OFFLINE to BLOCKED libfc: retry PRLI if we

[PATCH 2/3] libfc: check fc_frame_payload_get() return value for null

2018-10-07 Thread Hannes Reinecke
From: Thomas Abraham We should not assume the payload of a PRLI or PLOGI respons is always present. Signed-off-by: Thomas Abraham Reviewed-by: Hannes Reinecke --- drivers/scsi/libfc/fc_rport.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/scsi

Re: Looking for some help understanding error handling

2018-10-06 Thread Hannes Reinecke
ppreciated, and you really would get brownie points if you make this generic for the block layer :-) Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnbe

Re: Looking for some help understanding error handling

2018-10-05 Thread Hannes Reinecke
or vanishes. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)

[PATCH] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-09-21 Thread Hannes Reinecke
The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE at that time, so no new commands can be submitted via srp_queuecomment() Signed-off-by: Hannes Reinecke --- drivers/infiniband/ulp/srp/ib_srp.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers

Re: [PATCH 1/5] qedf: fixup bit operations

2018-09-06 Thread Hannes Reinecke
On 09/05/2018 04:09 PM, Martin Wilck wrote: > On Wed, 2018-09-05 at 15:53 +0200, Hannes Reinecke wrote: >> 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 &

[PATCH 4/5] qedf: remove stale variables in qedf_eh_XXX functions

2018-09-05 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke --- drivers/scsi/qedf/qedf_main.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 3407a05e898b..2bedad13f3f4 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf

[PATCH 0/5] qedf: fixup NULL pointer reference in fc_lookup_rport()

2018-09-05 Thread Hannes Reinecke
and reviews are welcome. Hannes Reinecke (5): qedf: fixup bit operations qedf: fixup locking in qedf_restart_rport() qedf: missing kref_put in qedf_xmit() qedf: remove stale variables in qedf_eh_XXX functions qedf: fc_rport_priv reference counting fixes drivers/scsi/qedf/qedf_els.c | 26

[PATCH 3/5] qedf: missing kref_put in qedf_xmit()

2018-09-05 Thread 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 --- drivers/scsi/qedf/qedf_main.c | 4 +++- 1 file changed, 3

[PATCH 5/5] qedf: fc_rport_priv reference counting fixes

2018-09-05 Thread 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 --- drivers/scsi/qedf/qedf_els.c | 12 ++-- drivers/scsi/qedf/qedf_io.c | 32 ++-- drivers

[PATCH 1/5] qedf: fixup bit operations

2018-09-05 Thread 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 --- drivers/scsi/qedf/qedf_els.c | 9 +++-- drivers/scsi/qedf/qedf_main.c | 5 - 2 files changed, 11 insertions(+), 3 deletions(-) diff

[PATCH 2/5] qedf: fixup locking in qedf_restart_rport()

2018-09-05 Thread 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 --- drivers/scsi/qedf/qedf_els.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/qedf/qedf_els.c b

Re: [PATCH] scsi: csiostor: remove automatic irq affinity assignment

2018-08-01 Thread Hannes Reinecke
n, cnt, PCI_IRQ_MSIX); > if (cnt < 0) > return cnt; > > Hmm. That patch (and the reasoning leading up to it) really sound dodgy. I'd rather fix the interrupt affinity code to handle this case correctly. Thomas, can you help here? Cheers, Hannes -- Dr. Hannes Reineck

Re: [RFC 0/6] scsi: scsi transport for ufs devices

2018-07-30 Thread Hannes Reinecke
On 07/30/2018 08:01 PM, Bart Van Assche wrote: On Sun, 2018-07-29 at 16:33 +0300, Avri Altman wrote: Here is a proposal to use the scsi transport subsystem to manage ufs devices. scsi transport is a framework that allow to send scsi commands to a non-scsi devices. Still, it is flexible enough

[PATCH 1/4] libfc: fixup lockdep annotations

2018-07-11 Thread Hannes Reinecke
fc_rport_recv_plogi_req() needs the lport mutex to be held; the rport mutex will be acquired in the function itself. Fixes: ee35624e1e4e ("scsi: libfc: Add lockdep annotations") Reported-by: Stephen Rothwell Signed-off-by: Hannes Reinecke --- drivers/scsi/libfc/fc_rport.c | 2

[PATCH 0/4] libfc/fcoe: disc_mutex fixes

2018-07-11 Thread Hannes Reinecke
() / fc_rport_logoff(), which in turn would be acquiring a mutex. So this patchset fixes up the remoaining uses, and also adds a warining to catch reference counting issues. As usual, comments and reviews are welcome. Hannes Reinecke (4): libfc: fixup lockdep annotations libfc: hold disc_mutex

[PATCH 3/4] libfc: Add WARN_ON() when deleting rports

2018-07-11 Thread Hannes Reinecke
of a list. Signed-off-by: Hannes Reinecke --- drivers/scsi/libfc/fc_rport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index 3d51a936f6d5..d69531ab2db8 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c

[PATCH 2/4] libfc: hold disc_mutex in fc_disc_stop_rports()

2018-07-11 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke --- drivers/scsi/libfc/fc_disc.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index c1756b9b3ea5..f969a71348ef 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc

[PATCH 4/4] fcoe: hold disc_mutex when traversing rport lists

2018-07-11 Thread Hannes Reinecke
to use krefs to ensure that the rport object will not be freed from under us. Fixes: a407c593398c ("scsi: libfc: Fixup disc_mutex handling") Signed-off-by: Hannes Reinecke --- drivers/scsi/fcoe/fcoe_ctlr.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git

[PATCHv2] libfc: fixup 'sleeping function called from invalid context'

2018-07-04 Thread Hannes Reinecke
any list manipulation. Fixes: a407c593398c ("scsi: libfc: Fixup disc_mutex handling") Signed-off-by: Hannes Reinecke --- drivers/scsi/libfc/fc_disc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_di

[PATCH] libfc: fixup 'sleeping function called from invalid context'

2018-07-04 Thread Hannes Reinecke
any list manipulation. Signed-off-by: Hannes Reinecke --- drivers/scsi/libfc/fc_disc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index 6125df787200..c1756b9b3ea5 100644 --- a/drivers/scsi/libfc/fc_disc.c

[PATCH] libfc: Add lockdep annotations

2018-07-04 Thread Hannes Reinecke
Convert the free text locking notes into proper lockdep annotations. Signed-off-by: Hannes Reinecke --- drivers/scsi/libfc/fc_disc.c | 32 + drivers/scsi/libfc/fc_lport.c | 108 +- drivers/scsi/libfc/fc_rport.c | 99

Re: [PATCH] scsi: sd_zbc: Fix variable type and bogus comment

2018-07-03 Thread Hannes Reinecke
unsigned char *rec; > unsigned int buf_len; > unsigned int list_length; > - int ret; > + s64 ret; > u8 same; > > /* Get a buffer */ > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage

Re: [PATCH v6 7/7] scsi_io_completion convert BUGs to WARNs

2018-06-25 Thread Hannes Reinecke
On 06/23/2018 12:22 PM, Douglas Gilbert wrote: The scsi_io_completion function contains three BUG() and BUG_ON() calls. Replace them with WARN variants. Signed-off-by: Douglas Gilbert Reviewed-by: Johannes Thumshirn Reviewed-by: Bart Van Assche --- drivers/scsi/scsi_lib.c | 15

Re: [PATCH v6 6/7] scsi_io_completion hints on fastpatch

2018-06-25 Thread Hannes Reinecke
; this should allow more other code to fit in the instruction cache. Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v6 5/7] scsi_io_completion_reprep helper added

2018-06-25 Thread Hannes Reinecke
-by: Bart Van Assche --- drivers/scsi/scsi_lib.c | 41 ++--- 1 file changed, 18 insertions(+), 23 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v6 4/7] scsi_io_completion_action helper added

2018-06-25 Thread Hannes Reinecke
's name. Signed-off-by: Douglas Gilbert Reviewed-by: Johannes Thumshirn Reviewed-by: Bart Van Assche --- drivers/scsi/scsi_lib.c | 329 +--- 1 file changed, 175 insertions(+), 154 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v6 3/7] scsi_io_completion_nz_result: function added

2018-06-25 Thread Hannes Reinecke
drivers/scsi/scsi_lib.c | 132 +++- 1 file changed, 75 insertions(+), 57 deletions(-) Still looks ugly, but then it's only a helper function. Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v6 2/7] scsi_io_completion: rename variables

2018-06-25 Thread Hannes Reinecke
++--- 1 file changed, 39 insertions(+), 33 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH v6 1/7] scsi_io_completion: comment on end_request return

2018-06-25 Thread Hannes Reinecke
_status_t error, unsigned int bytes, unsigned int bidi_bytes) { Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 5/6] lpfc: Fix port initialization failure.

2018-05-25 Thread Hannes Reinecke
mes.sm...@broadcom.com> > --- > drivers/scsi/lpfc/lpfc_init.c | 21 ++--- > 1 file changed, 18 insertions(+), 3 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH 3/6] lpfc: Fix crash in blk_mq layer when executing modprobe -r lpfc

2018-05-25 Thread Hannes Reinecke
> Signed-off-by: James Smart <james.sm...@broadcom.com> > --- > drivers/scsi/lpfc/lpfc_nvme.c | 9 + > 1 file changed, 9 insertions(+) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH 4/6] lpfc: Fix 16gb hbas failing cq create.

2018-05-25 Thread Hannes Reinecke
gt; > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- > drivers/scsi/lpfc/lpfc_hw4.h | 11 --- > drivers/scsi/lpfc/lpfc_init.c | 9 + > drivers/scsi/lpfc/lpfc_sli4.h | 1 - > 3 files changed, 1 insertion(+), 20 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH 6/6] lpfc: update driver version to 12.0.0.4

2018-05-25 Thread Hannes Reinecke
h > @@ -20,7 +20,7 @@ > * included with this package. * > ***/ > > -#define LPFC_DRIVER_VERSION "12.0.0.3" > +#define LPFC_DRIVER_VERSION "12.0.0.4" >

Re: [PATCH 2/6] lpfc: correct oversubscription of nvme io requests for an adapter

2018-05-25 Thread Hannes Reinecke
rivers/scsi/lpfc/lpfc_nportdisc.c | 6 ++ > drivers/scsi/lpfc/lpfc_nvme.c | 23 +++ > 3 files changed, 32 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH 1/6] lpfc: Fix MDS diagnostics failure (Rx < Tx)

2018-05-25 Thread Hannes Reinecke
t; loopback is running. > > Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com> > Signed-off-by: James Smart <james.sm...@broadcom.com> > --- > drivers/scsi/lpfc/lpfc_hbadisc.c | 3 +-- > drivers/scsi/lpfc/lpfc_sli.c | 19 --- > 2 files chang

Re: [PATCH 12/14] blk-mq: Fix timeout and state order

2018-05-23 Thread Hannes Reinecke
MQ_RQ_IN_FLIGHT); write_seqcount_end(>gstate_seq); preempt_enable(); Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH 10/14] block: remove BLK_EH_HANDLED

2018-05-23 Thread Hannes Reinecke
ed, 18 deletions(-) Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH 09/14] libiscsi: don't try to bypass SCSI EH

2018-05-23 Thread Hannes Reinecke
ame issue which triggered this patchset in the first place. Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH 11/14] block: document the blk_eh_timer_return values

2018-05-23 Thread Hannes Reinecke
_TIMER, + BLK_EH_DONE,/* drivers has completed the command */ + BLK_EH_RESET_TIMER, /* reset timer and try again */ }; typedef enum blk_eh_timer_return (rq_timed_out_fn)(struct request *); Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

  1   2   3   4   5   6   7   8   9   10   >