Re: [PATCH v2 11/29] scsi: libfc: fc_rport: Fix a couple of misdocumented function parameters

2020-07-14 Thread Hannes Reinecke
' description in 'fc_rport_create' drivers/scsi/libfc/fc_rport.c:1452: warning: Function parameter or member 'rdata_arg' not described in 'fc_rport_logo_resp' drivers/scsi/libfc/fc_rport.c:1452: warning: Excess function parameter 'lport_arg' description in 'fc_rport_logo_resp' Cc: Hannes Reinecke

Re: [PATCH v2 10/29] scsi: libfc: fc_lport: Repair function parameter documentation

2020-07-14 Thread Hannes Reinecke
: warning: Function parameter or member 'tov' not described in 'fc_lport_els_request' Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/libfc/fc_lport.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes

Re: [PATCH v2 06/29] scsi: fcoe: fcoe_transport: Correct some kernel-doc issues

2020-07-14 Thread Hannes Reinecke
'netdev' not described in 'fcoe_netdev_map_lookup' Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/fcoe/fcoe_transport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/fcoe/fcoe_transport.c b/drivers/scsi/fcoe/fcoe_transport.c index

Re: [PATCH v2 05/29] scsi: fcoe: fcoe_ctlr: Fix a myriad of documentation issues

2020-07-14 Thread Hannes Reinecke
: warning: Function parameter or member 'lport' not described in 'fcoe_ctlr_disc_start' drivers/scsi/fcoe/fcoe_ctlr.c:3033: warning: Excess function parameter 'fip' description in 'fcoe_ctlr_disc_start' Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/fcoe/fcoe_ctlr.c | 26

Re: [PATCH v2 04/29] scsi: fcoe: fcoe: Fix various kernel-doc infringements

2020-07-14 Thread Hannes Reinecke
'timeout' not described in 'fcoe_elsct_send' Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/fcoe/fcoe.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index cb41d166e0c0f..0f9274960dc6b 100644

Re: [PATCH v2 03/29] scsi: libfc: fc_disc: trivial: Fix spelling mistake of 'discovery'

2020-07-14 Thread Hannes Reinecke
On 7/13/20 9:46 AM, Lee Jones wrote: This is my fault (can't even blame copy/paste). Cc: Hannes Reinecke Reported-by: Johannes Thumshirn Signed-off-by: Lee Jones --- drivers/scsi/libfc/fc_disc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/libfc

Re: [PATCH v2 02/29] include: scsi: scsi_transport_fc: Match HBA Attribute Length with HBAAPI V2.0 definitions

2020-07-14 Thread Hannes Reinecke
0 +#define FC_FDMI_HBA_ATTR_SERIALNUMBER_LEN 80 #define FC_FDMI_HBA_ATTR_MODEL_LEN256 #define FC_FDMI_HBA_ATTR_MODELDESCR_LEN 256 #define FC_FDMI_HBA_ATTR_HARDWAREVERSION_LEN 256 Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamle

Re: [PATCH v2 01/29] scsi: libfc: fc_exch: Supply some missing kerneldoc struct/function attributes/params

2020-07-14 Thread Hannes Reinecke
parameter or member 'sp' not described in 'fc_invoke_resp' drivers/scsi/libfc/fc_exch.c:727: warning: Function parameter or member 'fp' not described in 'fc_invoke_resp' Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/libfc/fc_exch.c | 7 ++- 1 file changed, 6 insertions

Re: [PATCH 09/10] scsi: libfc: fc_disc: Fix-up some incorrectly referenced function parameters

2020-07-08 Thread Hannes Reinecke
: warning: Function parameter or member 'disc_arg' not described in 'fc_disc_gpn_ft_resp' drivers/scsi/libfc/fc_disc.c:498: warning: Excess function parameter 'lp_arg' description in 'fc_disc_gpn_ft_resp' Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/libfc/fc_disc.c | 6

Re: [PATCH] qla2xxx: Set NVME status code for failed NVME FCP request

2020-06-12 Thread Hannes Reinecke
gt;transferred_length = 0; + fd->status = NVME_SC_INTERNAL; } - fd->status = 0; spin_unlock_irqrestore(>cmd_lock, flags); fd->done(fd); Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead

Re: [PATCH 1/1] nvme-fcloop: verify wwnn and wwpn format

2020-06-04 Thread Hannes Reinecke
sent' :-) Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer

Re: [PATCH] scsi: Fix incorrect usage of shost_for_each_device

2020-06-04 Thread Hannes Reinecke
return ret; } Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer

Re: [PATCH] nvme-fc: Only call nvme_cleanup_cmd() for normal operations

2020-06-02 Thread Hannes Reinecke
tate == FC_OBJSTATE_ONLINE && Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer

Re: next-20200514 - build issue in drivers/md/dm-zoned-target.c

2020-05-18 Thread Hannes Reinecke
;nr_zones = DIV_ROUND_UP(reg_dev->capacity, str r1, [r6, #64] @ tmp306, reg_dev_166->nr_zones git blame points at this commit: commit 70978208ec91d798066f4c291bc98ff914bea222 Author: Hannes Reinecke Date: Mon May 11 10:24:30 2020 +0200 dm zoned: metadata version 2 Reverting

Re: [PATCH] scsi: fnic: Use kmalloc instead of vmalloc for a small memory allocation

2020-05-06 Thread Hannes Reinecke
lag); + kfree(fc_trc_flag); } /* Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG N

Re: [PATCH] scsi: lpfc: Honor module parameter lpfc_use_adisc

2019-10-21 Thread Hannes Reinecke
_adisc && (vport->fc_flag & FC_RSCN_MODE)) || > + if (vport->cfg_use_adisc && ((vport->fc_flag & FC_RSCN_MODE) || > ((ndlp->nlp_fcp_info & NLP_FCP_2_DEVICE) && > - (ndlp->nlp_type & NLP_FCP_TARGET))) { &

Re: [PATCH] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry()

2019-09-26 Thread Hannes Reinecke
s_cont_entry_t *pkt) > if (sense_len == 0) { > rsp->status_srb = NULL; > sp->done(sp, cp->result); > - } else { > - WARN_ON_ONCE(true); > } > } > > Not that I can speak for firmware documentation, but:

Re: [PATCH v2] scsi: qedf: Add port_id getter

2019-09-24 Thread Hannes Reinecke
*shost) > { > @@ -1996,6 +2003,7 @@ static struct fc_function_template qedf_fc_transport_fn > = { > .show_host_active_fc4s = 1, > .show_host_maxframe_size = 1, > > + .get_host_port_id = qedf_get_host_port_id, > .show_host_port_id = 1, > .show_host_suppo

Re: [PATCH v2 3/3] nvme: fire discovery log page change events to userspace

2019-09-09 Thread Hannes Reinecke
al. Although I'm not sure for RDMA; here we don't necessarily have a host transport address, so we _might_ send the discovery via the wrong controller in a CMIC enviroment. - Match the options in nvme-cli, and just discard the event if it doesn't match. Which is some additional coding in nvme-cli and might ran afoul if we ever miss events. I'd go for the second option; after considering the first introduces far too many conditions rendering debugging impractical. Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 247165 (AG München), GF: Felix Imendörffer

Re: [PATCHv2] nvme: Assign subsy instance from first ctrl

2019-09-09 Thread Hannes Reinecke
me/host/core.c | 21 ++--- > 1 file changed, 10 insertions(+), 11 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE Soft

Re: [PATCH] lpfc: Fix Buffer Overflow Error

2019-08-06 Thread Hannes Reinecke
, *end; > struct scatterlist *sgde = scsi_prot_sglist(cmnd); > > if (!_dump_buf_dif) { > @@ -138,7 +143,12 @@ struct scsi_dif_tuple { > } > > dst = _dump_buf_dif; > + end = ((char *) dst) + ((1 << PAGE_SHIFT) << _

Re: [PATCH] nvme/multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns

2019-07-31 Thread Hannes Reinecke
isk(struct gendisk > *disk, struct nvme_id_ns *id) > if (ns->head->disk) { > nvme_update_disk_info(ns->head->disk, ns, id); > blk_queue_stack_limits(ns->head->disk->queue, ns->queue); > + revalidate_disk(ns->head->disk); >

Re: [PATCH] scsi: fcoe: fix a typo

2019-07-21 Thread Hannes Reinecke
itation interval (mS) */ > #define FCOE_CTLR_FCF_LIMIT 20 /* max. number of FCF entries */ > #define FCOE_CTLR_VN2VN_LOGIN_LIMIT 3 /* max. VN2VN rport login > retries */ > > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTe

Re: [PATCH] scsi: libfc: fix null pointer dereference on a null lport

2019-07-12 Thread Hannes Reinecke
y\n"); > + FC_LIBFC_DBG("Receiving frames for an lport that " > + "has not been initialized correctly\n"); > fc_frame_free(fp); > return; > } > Reviewed-by: Hannes Reinecke Cheers

Re: [PATCH v1] scsi: Don't select SCSI_PROC_FS by default

2019-07-08 Thread Hannes Reinecke
On 7/5/19 7:53 PM, Douglas Gilbert wrote: > On 2019-07-05 3:22 a.m., Hannes Reinecke wrote: [ .. ] >> As mentioned, rescan-scsi-bus.sh is keeping references to /proc/scsi as >> a fall back only, as it's meant to work kernel independent. Per default >> it'll be using /sys,

Re: [PATCH 2/2] virtio_scsi: implement request batching

2019-07-05 Thread Hannes Reinecke
ssion before the last request is reached. > > Suggested-by: Stefan Hajnoczi > Signed-off-by: Paolo Bonzini > --- > drivers/scsi/virtio_scsi.c | 55 +++--- > 1 file changed, 40 insertions(+), 15 deletions(-) > Reviewed-by: Hannes Reinecke Cheers

Re: [PATCH 1/2] scsi_host: add support for request batching

2019-07-05 Thread Hannes Reinecke
On 7/5/19 9:44 AM, Stefan Hajnoczi wrote: > On Fri, Jul 05, 2019 at 09:12:37AM +0200, Hannes Reinecke wrote: >> On 7/4/19 3:19 PM, Paolo Bonzini wrote: >>> On 19/06/19 12:31, Paolo Bonzini wrote: >>>>> I'm a bit unsure if 'bd->last' is always set; it's quite ob

Re: [PATCH v1] scsi: Don't select SCSI_PROC_FS by default

2019-07-05 Thread Hannes Reinecke
c/sgp_dd.8:mapping to SCSI block devices should be checked with 'cat > /proc/scsi/scsi' > ./doc/sg_dd.8:notes this at completion. If direct IO is selected and > /proc/scsi/sg/allow_dio > ./doc/sg_dd.8:this at completion. If direct IO is selected and > /proc/scsi/sg/allow_dio > ./doc/sg_dd.

Re: [PATCH v1] scsi: Don't select SCSI_PROC_FS by default

2019-07-05 Thread Hannes Reinecke
t;> That is 6 (not 38) by my count. > > Hi Doug, > > This is the command I ran: > > $ git grep /proc/scsi | wc -l > 38 > > I think your query excludes scripts/rescan-scsi-bus.sh. > You can ignore rescan-scsi-bus.sh. It's keeping /proc access as a fallback opt

Re: [PATCH 0/2] scsi: add support for request batching

2019-07-05 Thread Hannes Reinecke
re is the ->commit_rqs() callback invoked? I don't seem to be able to find it... Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer

Re: [PATCH 1/2] scsi_host: add support for request batching

2019-07-05 Thread Hannes Reinecke
encountered before sending * the request with SCMD_LAST set. So it should be somewhere in the error path, probably scsi_error or something. But I don't seem to be able to find it ... Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH] nvme: fix multipath crash when ANA deactivated

2019-07-02 Thread Hannes Reinecke
t; @@ -659,5 +666,6 @@ void nvme_mpath_uninit(struct nvme_ctrl *ctrl) > { > kfree(ctrl->ana_log_buf); > ctrl->ana_log_buf = NULL; > + ctrl->ana_enabled = false; > } > > diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h > inde

Re: [PATCH] scsi: scsi_sysfs.c: Hide wwid sdev attr if VPD is not supported

2019-06-19 Thread Hannes Reinecke
On 6/19/19 11:52 AM, Marcos Paulo de Souza wrote: > On Wed, Jun 19, 2019 at 08:34:56AM +0200, Hannes Reinecke wrote: >> On 6/19/19 5:35 AM, Martin K. Petersen wrote: >>> >>> Marcos, >>> >>>> WWID composed from VPD data from device, specifically pag

Re: [PATCH 1/2] scsi_host: add support for request batching

2019-06-19 Thread Hannes Reinecke
gt;last' setting onto the SCMD_LAST flag; I would even go so far and make this an independent patch. Once to above points are cleared, that is. But if that one is in, why do we need to have the separate 'commit_rqs' callback? Can't we let the driver decide to issue a doorbell kick (or whatever the driver decides to do there)? If we ensure that the SCMD_LAST flag is always set for the end of a batch (even if this batch consists only of one request), the driver simply can evaluate the flag and do its actions. Why do we need a new callback here? Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)

Re: [PATCH] scsi: scsi_sysfs.c: Hide wwid sdev attr if VPD is not supported

2019-06-19 Thread Hannes Reinecke
attribute is not present. So making 'wwid' conditional would actually defeat its very purpose, and we should leave it blank if not supported. Cheers, Hannes -- Dr. Hannes ReineckezSeries & Storage h...@suse.com +49 911 74053 688 SUSE

Re: [PATCH trivial] [SCSI] aic7xxx: Spelling s/configuraion/configuration/

2019-06-07 Thread Hannes Reinecke
er chips, this >* area can be read and written by both the host and the sequencer. > Indeed trivial. Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckezSeries & Storage h...@suse.com +49 911 74053 688 SUSE

Re: [PATCH 1/2] PM / arch: x86: Rework the MSR_IA32_ENERGY_PERF_BIAS handling

2019-03-22 Thread Hannes Reinecke
. Wysocki --- 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: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284

Re: [PATCH 2/2] PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface

2019-03-22 Thread Hannes Reinecke
/sysfs-devices-system-cpu | 18 Documentation/admin-guide/pm/intel_epb.rst | 27 ++ arch/x86/kernel/cpu/intel_epb.c| 93 - 3 files changed, 134 insertions(+), 4 deletions(-) Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes

Re: [PATCH -next] scsi: libfc: Fix potential NULL pointer dereference

2019-03-07 Thread Hannes Reinecke
nlock(>disc.disc_mutex); + return; + } kref_get(>ptp_rdata->kref); lport->ptp_rdata->ids.port_name = remote_wwpn; lport->ptp_rdata->ids.node_name = remote_wwnn; Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH -next] scsi: libfc: Fix potential NULL pointer dereference

2019-02-27 Thread Hannes Reinecke
On 2/27/19 7:09 AM, YueHaibing wrote: Friendly ping: Who can review or take this, please? Thanks On 2019/1/30 18:11, YueHaibing wrote: There is a potential NULL pointer dereference in case fc_rport_create() fails and returns NULL. Fixes: 2580064b5ec6 ("scsi: libfc: Replace ->rport_create

Re: [PATCH RFC v2] fcoe: make use of fip_mode enum complete

2019-02-14 Thread Hannes Reinecke
wahn CC: Nick Desaulniers CC: Nathan Chancellor CC: Hannes Reinecke Suggested-by: Johannes Thumshirn --- [ v2: - Based on the original patch by Lukas Bulwahn - Suggestion by Johannes T. [1] required some changes: + s/case FIP_ST_VMMP_START/case FIP_ST_V*N*MP_START + s/return FI

Re: Question on handling managed IRQs when hotplugging CPUs

2019-02-05 Thread Hannes Reinecke
On 2/5/19 4:09 PM, John Garry wrote: On 05/02/2019 14:52, Keith Busch wrote: On Tue, Feb 05, 2019 at 05:24:11AM -0800, John Garry wrote: On 04/02/2019 07:12, Hannes Reinecke wrote: Hi Hannes, So, as the user then has to wait for the system to declars 'ready for CPU remove', why can't we

Re: Question on handling managed IRQs when hotplugging CPUs

2019-02-05 Thread Hannes Reinecke
On 2/5/19 3:52 PM, Keith Busch wrote: On Tue, Feb 05, 2019 at 05:24:11AM -0800, John Garry wrote: On 04/02/2019 07:12, Hannes Reinecke wrote: Hi Hannes, So, as the user then has to wait for the system to declars 'ready for CPU remove', why can't we just disable the SQ and wait for all I/O

Re: Question on handling managed IRQs when hotplugging CPUs

2019-02-03 Thread Hannes Reinecke
On 2/1/19 10:57 PM, Thomas Gleixner wrote: On Fri, 1 Feb 2019, Hannes Reinecke wrote: Thing is, if we have _managed_ CPU hotplug (ie if the hardware provides some means of quiescing the CPU before hotplug) then the whole thing is trivial; disable SQ and wait for all outstanding commands

Re: Question on handling managed IRQs when hotplugging CPUs

2019-02-01 Thread Hannes Reinecke
can handle surprise CPU hotplug at all, given all the possible race conditions. But then I might be wrong. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 904

Re: Question on handling managed IRQs when hotplugging CPUs

2019-01-29 Thread Hannes Reinecke
'm totally wrong and it's already been taken care of. But if there is no generic mechanism this really is a fit topic for LSF/MM, as most other drivers would be affected, too. Cheers, Hannes -- Dr. Hannes ReineckezSeries & Storage

Re: [PATCH] MAINTAINERS: Move FCoE to Hannes Reinecke

2019-01-28 Thread Hannes Reinecke
On 1/28/19 12:06 PM, Johannes Thumshirn wrote: I'll be moving on to different things in the storage stack and Hannes agreed to take over FCoE. Cc: Hannes Reinecke Signed-off-by: Johannes Thumshirn --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2] SCSI: fcoe: convert to use BUS_ATTR_WO

2019-01-26 Thread Hannes Reinecke
On 1/26/19 11:39 AM, Greg Kroah-Hartman wrote: On Sat, Jan 26, 2019 at 11:26:47AM +0100, Hannes Reinecke wrote: On 1/22/19 3:27 PM, Greg Kroah-Hartman wrote: We are trying to get rid of BUS_ATTR() and the usage of that in the fcoe driver can be trivially converted to use BUS_ATTR_WO(), so use

Re: [PATCH v2] SCSI: fcoe: convert to use BUS_ATTR_WO

2019-01-26 Thread Hannes Reinecke
On 1/22/19 3:27 PM, Greg Kroah-Hartman wrote: We are trying to get rid of BUS_ATTR() and the usage of that in the fcoe driver can be trivially converted to use BUS_ATTR_WO(), so use that instead. Cc: Johannes Thumshirn Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Signed-off-by: Greg

Re: [PATCH] SCSI: fcoe: remove unneeded fcoe_ctlr_destroy_store export

2019-01-23 Thread Hannes Reinecke
,7 +855,6 @@ ssize_t fcoe_ctlr_destroy_store(struct bus_type *bus, mutex_unlock(_mutex); return rc; } -EXPORT_SYMBOL(fcoe_ctlr_destroy_store); /** * fcoe_transport_create() - Create a fcoe interface Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH] scsi: advansys: use struct_size() in kzalloc()

2019-01-11 Thread Hannes Reinecke
u want ... Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 05/41] scsi: aic7xxx: aic79xx: mark expected switch fall-through

2019-01-10 Thread Hannes Reinecke
t;Missing break in switch") Signed-off-by: Gustavo A. R. Silva ---   drivers/scsi/aic7xxx/aic79xx_core.c | 14 +-   1 file changed, 9 insertions(+), 5 deletions(-) Sorry, I thought I'd done so already. Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reineck

Re: [PATCH 03/10] SCSI: fcoe: convert to use BUS_ATTR_WO

2018-12-28 Thread Hannes Reinecke
On 12/21/18 4:29 PM, James Bottomley wrote: [scsi list cc added] On Fri, 2018-12-21 at 08:54 +0100, Greg Kroah-Hartman wrote: We are trying to get rid of BUS_ATTR() and the usage of that in the fcoe driver can be trivially converted to use BUS_ATTR_WO(), so use that instead. At the same time

Re: [PATCH 32/41] scsi: myrb: Mark expected switch fall-throughs

2018-12-19 Thread Hannes Reinecke
. Addresses-Coverity-ID: 1465234 ("Missing break in switch") Addresses-Coverity-ID: 1465238 ("Missing break in switch") Addresses-Coverity-ID: 1465242 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva ---   drivers/scsi/myrb.c | 3 +++   1 file changed, 3 inser

Re: [PATCH] zram: close udev startup race condition as default groups

2018-11-13 Thread Hannes Reinecke
Cc: Sergey Senozhatsky Cc: Hannes Reinecke Tested-by: Howard Chen Signed-off-by: Minchan Kim --- drivers/block/zram/zram_drv.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) Actually, I have a similar patch for NVMe in older revisions, so maybe I should

Re: [PATCH] zram: close udev startup race condition as default groups

2018-11-13 Thread Hannes Reinecke
Cc: Sergey Senozhatsky Cc: Hannes Reinecke Tested-by: Howard Chen Signed-off-by: Minchan Kim --- drivers/block/zram/zram_drv.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) Actually, I have a similar patch for NVMe in older revisions, so maybe I should

Re: [Ksummit-discuss] [PATCH 1/2] code-of-conduct: Fix the ambiguity about collecting email addresses

2018-10-07 Thread Hannes Reinecke
On 10/7/18 11:04 AM, Daniel Vetter wrote: > On Sat, Oct 6, 2018 at 11:36 PM James Bottomley > wrote: >> >> From 4a614e9440148894207bef5bf69e74071baceb3b Mon Sep 17 00:00:00 2001 >> From: James Bottomley >> Date: Sat, 6 Oct 2018 14:21:56 -0700 >> Subject: [PATCH 1/2] code-of-conduct: Fix the

Re: [Ksummit-discuss] [PATCH 1/2] code-of-conduct: Fix the ambiguity about collecting email addresses

2018-10-07 Thread Hannes Reinecke
On 10/7/18 11:04 AM, Daniel Vetter wrote: > On Sat, Oct 6, 2018 at 11:36 PM James Bottomley > wrote: >> >> From 4a614e9440148894207bef5bf69e74071baceb3b Mon Sep 17 00:00:00 2001 >> From: James Bottomley >> Date: Sat, 6 Oct 2018 14:21:56 -0700 >> Subject: [PATCH 1/2] code-of-conduct: Fix the

Re: linux-next: build warning after merge of the scsi-mkp tree

2018-07-12 Thread Hannes Reinecke
(presumably it is being inlined) and this looks like an actual bug :-( > > This warning now appears after the merge of the scsi tree. > I have send a new round of patches to the scsi mailing list (cf 'libfc/fcoe: disc_mutex fixes') which address this issue. Cheers, Hannes -- Dr. Hannes R

Re: linux-next: build warning after merge of the scsi-mkp tree

2018-07-12 Thread Hannes Reinecke
(presumably it is being inlined) and this looks like an actual bug :-( > > This warning now appears after the merge of the scsi tree. > I have send a new round of patches to the scsi mailing list (cf 'libfc/fcoe: disc_mutex fixes') which address this issue. Cheers, Hannes -- Dr. Hannes R

Re: [PATCH 0/3] Provide more fine grained control over multipathing

2018-05-29 Thread Hannes Reinecke
On Mon, 28 May 2018 23:02:36 -0400 Mike Snitzer wrote: > On Mon, May 28 2018 at 9:19pm -0400, > Martin K. Petersen wrote: > > > > > Mike, > > > > I understand and appreciate your position but I still don't think > > the arguments for enabling DM multipath are sufficiently > > compelling.

Re: [PATCH 0/3] Provide more fine grained control over multipathing

2018-05-29 Thread Hannes Reinecke
On Mon, 28 May 2018 23:02:36 -0400 Mike Snitzer wrote: > On Mon, May 28 2018 at 9:19pm -0400, > Martin K. Petersen wrote: > > > > > Mike, > > > > I understand and appreciate your position but I still don't think > > the arguments for enabling DM multipath are sufficiently > > compelling.

Re: [PATCH] scsi: clean up generated file scsi_devinfo_tbl.c

2018-05-13 Thread Hannes Reinecke
that the file gets > cleaned up. > > Fixes: 345e29608b4b ("scsi: scsi: Export blacklist flags to sysfs") > > Cc: Hannes Reinecke <h...@suse.de> > Signed-off-by: Randy Dunlap <rdun...@infradead.org> > --- > drivers/scsi/Makefile |2 +- > 1 file changed,

Re: [PATCH] scsi: clean up generated file scsi_devinfo_tbl.c

2018-05-13 Thread Hannes Reinecke
8b4b ("scsi: scsi: Export blacklist flags to sysfs") > > Cc: Hannes Reinecke > Signed-off-by: Randy Dunlap > --- > drivers/scsi/Makefile |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-4.17-rc4.orig/drivers/scsi/Makefile > +++ linux-4.1

Re: [PATCH] nvme: fc: provide a descriptive error

2018-04-19 Thread Hannes Reinecke
_fc_create_ctrl(struct device *dev, struct > nvmf_ctrl_options *opts) > } > spin_unlock_irqrestore(_fc_lock, flags); > > + pr_warn("%s: %s - %s combination not found\n", > + __func__, opts->traddr, opts->host_traddr); > return ERR_PTR(-ENOENT); > } >

Re: [PATCH] nvme: fc: provide a descriptive error

2018-04-19 Thread Hannes Reinecke
ns *opts) > } > spin_unlock_irqrestore(_fc_lock, flags); > > + pr_warn("%s: %s - %s combination not found\n", > + __func__, opts->traddr, opts->host_traddr); > return ERR_PTR(-ENOENT); > } > > Reviewed-by: Hannes

Re: [PATCH] scsi: qla2xxx: Correct setting of SAM_STAT_CHECK_CONDITION

2018-04-09 Thread Hannes Reinecke
te(cmd, DRIVER_SENSE); > set_host_byte(cmd, DID_ABORT); > - cmd->result |= SAM_STAT_CHECK_CONDITION << 1; > + cmd->result |= SAM_STAT_CHECK_CONDITION; > return 1; > } > > Reviewed-by: Hannes Reinecke <h...@sus

Re: [PATCH] scsi: qla2xxx: Correct setting of SAM_STAT_CHECK_CONDITION

2018-04-09 Thread Hannes Reinecke
;result |= SAM_STAT_CHECK_CONDITION << 1; > + cmd->result |= SAM_STAT_CHECK_CONDITION; > return 1; > } > > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH] scsi: don't look for NULL devices handlers by name

2018-03-26 Thread Hannes Reinecke
struct scsi_device_handler *dh; > > + if (!name || strlen(name) == 0) > + return NULL; > + > dh = __scsi_dh_lookup(name); > if (!dh) { > request_module("scsi_dh_%s", name); Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes

Re: [PATCH] scsi: don't look for NULL devices handlers by name

2018-03-26 Thread Hannes Reinecke
ame || strlen(name) == 0) > + return NULL; > + > dh = __scsi_dh_lookup(name); > if (!dh) { > request_module("scsi_dh_%s", name); Reviewed-by: Hannes Reinecke Cheers, Hannes

Re: [PATCH 00/16] remove eight obsolete architectures

2018-03-15 Thread Hannes Reinecke
On 03/15/2018 10:42 AM, David Howells wrote: > Do we have anything left that still implements NOMMU? > RISC-V ? (evil grin :-) Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE

Re: [PATCH 00/16] remove eight obsolete architectures

2018-03-15 Thread Hannes Reinecke
On 03/15/2018 10:42 AM, David Howells wrote: > Do we have anything left that still implements NOMMU? > RISC-V ? (evil grin :-) Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE

Re: [PATCH] device_handler: remove VLAs

2018-03-12 Thread Hannes Reinecke
> drivers/scsi/device_handler/scsi_dh_alua.c | 8 > drivers/scsi/device_handler/scsi_dh_emc.c | 2 +- > drivers/scsi/device_handler/scsi_dh_rdac.c | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheer

Re: [PATCH] device_handler: remove VLAs

2018-03-12 Thread Hannes Reinecke
ers/scsi/device_handler/scsi_dh_alua.c | 8 > drivers/scsi/device_handler/scsi_dh_emc.c | 2 +- > drivers/scsi/device_handler/scsi_dh_rdac.c | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH v3 8/8] scsi: hisi_sas: Code cleanup and minor bug fixes

2018-03-06 Thread Hannes Reinecke
CHL_INT0_SL_PHY_ENABLE_MSK); > @@ -1217,7 +1219,7 @@ static int phy_down_v3_hw(int phy_no, struct hisi_hba > *hisi_hba) > hisi_sas_phy_write32(hisi_hba, phy_no, CHL_INT0, CHL_INT0_NOT_RDY_MSK); > hisi_sas_phy_write32(hisi_hba, phy_

Re: [PATCH v3 8/8] scsi: hisi_sas: Code cleanup and minor bug fixes

2018-03-06 Thread Hannes Reinecke
phy_down_v3_hw(int phy_no, struct hisi_hba > *hisi_hba) > hisi_sas_phy_write32(hisi_hba, phy_no, CHL_INT0, CHL_INT0_NOT_RDY_MSK); > hisi_sas_phy_write32(hisi_hba, phy_no, PHYCTRL_NOT_RDY_MSK, 0); > > - return 0; > + return IRQ_HANDLED; > } > > static void phy_bcast_v3_hw(int phy_

Re: [PATCH v3 5/8] scsi: hisi_sas: increase timer expire of internal abort task

2018-03-06 Thread Hannes Reinecke
a no-op. Care to clarify? 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)

Re: [PATCH v3 5/8] scsi: hisi_sas: increase timer expire of internal abort task

2018-03-06 Thread Hannes Reinecke
e internal abort task will > be executed only when the retry process finished. > Hmm. That sounds weird. I would have expected that a link retrain will force a device reset, after which no tasks should be active on the target. Consequently the succeeding abort task will be a no-op. Care to clarify? Che

Re: iSCSI session logout regression after fbce4d97fd ("scsi: fixup kernel warning during rmmod()")

2018-02-18 Thread Hannes Reinecke
R10: ffdf R11: 0293 R12: > 55867dd47410 > [ 70.441199] R13: R14: 0001 R15: > 7f6d4c03be00 > [ 70.441486] Code: fe ff ff 44 0f b6 bd 7f ff ff ff 80 7d ab 00 79 > 05 45 84 ff 74 7b 48 83 c4 78 5b 41 5c 41 5d 41 5e 41 5f 5d 4

Re: iSCSI session logout regression after fbce4d97fd ("scsi: fixup kernel warning during rmmod()")

2018-02-18 Thread Hannes Reinecke
R10: ffdf R11: 0293 R12: > 55867dd47410 > [ 70.441199] R13: R14: 0001 R15: > 7f6d4c03be00 > [ 70.441486] Code: fe ff ff 44 0f b6 bd 7f ff ff ff 80 7d ab 00 79 > 05 45 84 ff 74 7b 48 83 c4 78 5b 41 5c 41 5d 41 5e 41 5f 5d 4

Re: [PATCH 2/2] nvme: add tracepoint for nvme_complete_rq

2018-01-16 Thread Hannes Reinecke
("command_id=%u, result=%llu, retries=%u, flags=0x%x, > status=%u", > + __entry->cid, > + (unsigned long long)le64_to_cpu(__entry->result), > + __entry->retries, __entry->flags, __entry->status) > + > +);

Re: [PATCH 2/2] nvme: add tracepoint for nvme_complete_rq

2018-01-16 Thread Hannes Reinecke
_id=%u, result=%llu, retries=%u, flags=0x%x, > status=%u", > + __entry->cid, > + (unsigned long long)le64_to_cpu(__entry->result), > + __entry->retries, __entry->flags, __entry->status) > +

Re: [PATCH 1/2] nvme: add tracepoint for nvme_setup_cmd

2018-01-16 Thread Hannes Reinecke
nd, cmd, sizeof(__entry->cmnd)); > + ), > + > + TP_printk("nsid=%u, command_id=%u, flags=0x%x, metadata=0x%llx, > cmd=(%s %s)", > + le32_to_cpu(__entry->nsid), __entry->cid, __entry->flags, > + (unsigned long long) le6

Re: [PATCH 1/2] nvme: add tracepoint for nvme_setup_cmd

2018-01-16 Thread Hannes Reinecke
entry->cmnd)); > + ), > + > + TP_printk("nsid=%u, command_id=%u, flags=0x%x, metadata=0x%llx, > cmd=(%s %s)", > + le32_to_cpu(__entry->nsid), __entry->cid, __entry->flags, > + (unsigned long long) le64_to_cpu(__entry->meta

Re: [PATCH 2/8] blk-mq: protect completion path with RCU

2018-01-08 Thread Hannes Reinecke
complete_request); > > Hmm. Why do we need to call blk_mq_map_queue() here? Is there a chance that we end up with a _different_ hctx on completion than that one used for submission? If not, why can't we just keep a pointer to the hctx in struct request? Cheers, Hannes -- Dr. Hannes Rein

Re: [PATCH 2/8] blk-mq: protect completion path with RCU

2018-01-08 Thread Hannes Reinecke
request); > > Hmm. Why do we need to call blk_mq_map_queue() here? Is there a chance that we end up with a _different_ hctx on completion than that one used for submission? If not, why can't we just keep a pointer to the hctx in struct request? Cheers, Hannes -- Dr. Hannes ReineckeTe

Re: [PATCH v5 2/7] scsi: libsas: shut down the PHY if events reached the threshold

2018-01-07 Thread Hannes Reinecke
On 12/15/2017 01:18 PM, Hannes Reinecke wrote: > On 12/08/2017 10:42 AM, Jason Yan wrote: >> If the PHY burst too many events, we will alloc a lot of events for the >> worker. This may leads to memory exhaustion. >> >> Dan Williams suggested to shut down th

Re: [PATCH v5 2/7] scsi: libsas: shut down the PHY if events reached the threshold

2018-01-07 Thread Hannes Reinecke
On 12/15/2017 01:18 PM, Hannes Reinecke wrote: > On 12/08/2017 10:42 AM, Jason Yan wrote: >> If the PHY burst too many events, we will alloc a lot of events for the >> worker. This may leads to memory exhaustion. >> >> Dan Williams suggested to shut down th

Re: [PATCH v5 7/7] scsi: libsas: notify event PORTE_BROADCAST_RCVD in sas_enable_revalidation()

2017-12-15 Thread Hannes Reinecke
eue_event(ev, >disc_work[ev].work, ha); > + if (list_empty(>phy_list)) > + continue; > + > + sas_phy = container_of(port->phy_list.next, struct asd_sas_phy, > + port_phy_el); > + ha->

Re: [PATCH v5 7/7] scsi: libsas: notify event PORTE_BROADCAST_RCVD in sas_enable_revalidation()

2017-12-15 Thread Hannes Reinecke
of(port->phy_list.next, struct asd_sas_phy, > + port_phy_el); > + ha->notify_port_event(sas_phy, PORTE_BROADCAST_RCVD); > } > mutex_unlock(>disco_mutex); > } > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinec

Re: [PATCH v5 6/7] scsi: libsas: direct call probe and destruct

2017-12-15 Thread Hannes Reinecke
> drivers/scsi/libsas/sas_discover.c | 32 ++-- > drivers/scsi/libsas/sas_expander.c | 8 +++- > drivers/scsi/libsas/sas_internal.h | 1 + > drivers/scsi/libsas/sas_port.c | 3 +++ > include/scsi/libsas.h | 3 +

Re: [PATCH v5 6/7] scsi: libsas: direct call probe and destruct

2017-12-15 Thread Hannes Reinecke
drivers/scsi/libsas/sas_port.c | 3 +++ > include/scsi/libsas.h | 3 +-- > include/scsi/scsi_transport_sas.h | 1 + > 7 files changed, 27 insertions(+), 22 deletions(-) > Signed-off-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes ReineckeTea

Re: [PATCH v5 5/7] scsi: libsas: use flush_workqueue to process disco events synchronously

2017-12-15 Thread Hannes Reinecke
sas_discover_event(phy->port, DISCE_REVALIDATE_DOMAIN); > + > + if (phy->port) > + flush_workqueue(phy->port->ha->disco_q); > } > > void sas_porte_link_reset_err(struct work_struct *work) > Reviewed-by: Hannes Reinecke <h...@suse.com>

Re: [PATCH v5 5/7] scsi: libsas: use flush_workqueue to process disco events synchronously

2017-12-15 Thread Hannes Reinecke
orte_broadcast_rcvd(struct work_struct *work) > > SAS_DPRINTK("broadcast received: %d\n", prim); > sas_discover_event(phy->port, DISCE_REVALIDATE_DOMAIN); > + > + if (phy->port) > + flush_workqueue(phy->port->ha->disco_

Re: [PATCH v5 4/7] scsi: libsas: Use new workqueue to run sas event and disco event

2017-12-15 Thread Hannes Reinecke
er.c | 2 +- > drivers/scsi/libsas/sas_event.c| 6 +++--- > drivers/scsi/libsas/sas_init.c | 18 ++ > include/scsi/libsas.h | 3 +++ > 4 files changed, 25 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Chee

Re: [PATCH v5 4/7] scsi: libsas: Use new workqueue to run sas event and disco event

2017-12-15 Thread Hannes Reinecke
gt; CC: Dan Williams > Signed-off-by: Jason Yan > --- > drivers/scsi/libsas/sas_discover.c | 2 +- > drivers/scsi/libsas/sas_event.c| 6 +++--- > drivers/scsi/libsas/sas_init.c | 18 ++ > include/scsi/libsas.h | 3 +++ > 4 files changed, 25 inse

Re: [PATCH v5 3/7] scsi: libsas: make the event threshold configurable

2017-12-15 Thread Hannes Reinecke
On 12/08/2017 10:42 AM, Jason Yan wrote: > Add a sysfs attr that LLDD can configure it for every host. We made > a example in hisi_sas. Other LLDDs using libsas can implement it if > they want. > > Suggested-by: Hannes Reinecke <h...@suse.com> > Signed-off-by: Jason Yan &l

Re: [PATCH v5 3/7] scsi: libsas: make the event threshold configurable

2017-12-15 Thread Hannes Reinecke
On 12/08/2017 10:42 AM, Jason Yan wrote: > Add a sysfs attr that LLDD can configure it for every host. We made > a example in hisi_sas. Other LLDDs using libsas can implement it if > they want. > > Suggested-by: Hannes Reinecke > Signed-off-by: Jason Yan > CC: John

Re: [PATCH v5 2/7] scsi: libsas: shut down the PHY if events reached the threshold

2017-12-15 Thread Hannes Reinecke
changed, 64 insertions(+), 2 deletions(-) > Well, this still looks a bit error prone; what if the system runs out of memory before the pool is exhausted? (Also a threshold of 1024 events is a bit arbitrary; one might want to adjust that). Couldn't you allocate two static

Re: [PATCH v5 2/7] scsi: libsas: shut down the PHY if events reached the threshold

2017-12-15 Thread Hannes Reinecke
024 events is a bit arbitrary; one might want to adjust that). Couldn't you allocate two static events always (for shutdown and signal loss), and then use a fixed pool? Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

<    1   2   3   4   5   6   7   8   9   10   >