Re: [PATCH 7/7] drivers/s390/scsi/zfcp_cfdc.c: remove invalid reference to list iterator variable

2012-08-20 Thread Steffen Maier
Hi Julia, sorry for the long delay until I finally responded. Thanks a lot for your report and patch. I'll queue this and send it for v3.6rcX hopefully soon. On 07/08/2012 01:37 PM, Julia Lawall wrote: From: Julia Lawall julia.law...@lip6.fr If list_for_each_entry, etc complete a traversal of

kernel module to list sockets with their multicast group joins and respective processes

2007-07-16 Thread Steffen Maier
of a procfs interface. * * Linux kernel module for Linux version 2.6. * * (c) 2007 Steffen Maier [EMAIL PROTECTED] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation

[PATCH 4/8] zfcp: fix lock imbalance by reworking request queue locking

2013-08-21 Thread Steffen Maier
daniel.vet...@ffwll.ch Cc: linux-kernel@vger.kernel.org Signed-off-by: Steffen Maier ma...@linux.vnet.ibm.com --- drivers/s390/scsi/zfcp_qdio.c |8 + include/linux/wait.h | 57 ++ 2 files changed, 59 insertions(+), 6 deletions

[PATCH RESEND 1/3] zfcp: fix lock imbalance by reworking request queue locking

2013-08-22 Thread Steffen Maier
daniel.vet...@ffwll.ch Cc: linux-kernel@vger.kernel.org Signed-off-by: Steffen Maier ma...@linux.vnet.ibm.com --- drivers/s390/scsi/zfcp_qdio.c |8 + include/linux/wait.h | 57 ++ 2 files changed, 59 insertions(+), 6 deletions

Re: PROBLEM: special sense code asc,ascq=04h,0Ch abort scsi scan in the middle

2013-10-14 Thread Steffen Maier
aborted\n, lun); break; } } } -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on System z Development IBM Deutschland Research Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen

Re: PROBLEM: special sense code asc,ascq=04h,0Ch abort scsi scan in the middle

2013-10-14 Thread Steffen Maier
On 10/14/2013 03:32 PM, Hannes Reinecke wrote: On 10/14/2013 03:18 PM, Hannes Reinecke wrote: On 10/14/2013 02:51 PM, Steffen Maier wrote: On 10/14/2013 01:13 PM, Hannes Reinecke wrote: On 10/13/2013 07:23 PM, Vaughan Cao wrote: [1.] One line summary of the problem: special sense code asc

Re: [PATCH] s390: scsi: zfcp_aux.c: Cleaning up missing null-terminate in conjunction with strncpy

2014-07-28 Thread Steffen Maier
can change it though, Acked-by: Steffen Maier ma...@linux.vnet.ibm.com - strncpy(busid, token, ZFCP_BUS_ID_SIZE); + strlcpy(busid, token, ZFCP_BUS_ID_SIZE); token = strsep(str, ,); if (!token || kstrtoull(token, 0, (unsigned long long *) wwpn)) -- Mit freundlichen

Re: [patch] mm, mempool: do not allow atomic resizing

2015-03-11 Thread Steffen Maier
for the zfcp part: Acked-by: Steffen Maier ma...@linux.vnet.ibm.com On 03/08/2015 04:19 AM, David Rientjes wrote: Allocating a large number of elements in atomic context could quickly deplete memory reserves, so just disallow atomic resizing entirely. Nothing currently uses mempool_resize

Re: [PATCH v2 4/8] s390: replace zfcp_qdio_sbale_count by sg_nents

2015-09-30 Thread Steffen Maier
zfcp_qdio_real_bytes - count bytes used * @sg: pointer to struct scatterlist */ -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrun

Re: [PATCH v2 00/16] Convert FibreChannel bsg code to use bsg-lib

2016-10-12 Thread Steffen Maier
.h | 4 + include/scsi/libfc.h | 2 +- include/scsi/scsi_transport_fc.h | 62 ++---- 20 files changed, 745 insertions(+), 856 deletions(-) -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & De

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Steffen Maier
Hi Johannes, On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: Hm, still behaves for me like

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-28 Thread Steffen Maier
On 10/13/2016 06:24 PM, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:15:25PM +0200, Steffen Maier wrote: I'm puzzled. $ git bisect start fc_bsg master 3087864ce3d7282f59021245d8a5f83ef1caef18 is the first bad commit commit 3087864ce3d7282f59021245d8a5f83ef1caef18 Author: Johannes

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-28 Thread Steffen Maier
On 10/28/2016 01:31 PM, Hannes Reinecke wrote: On 10/28/2016 11:53 AM, Steffen Maier wrote: On 10/13/2016 06:24 PM, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:15:25PM +0200, Steffen Maier wrote: I'm puzzled. $ git bisect start fc_bsg master

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Steffen Maier
MSG; + bsg_reply = job->reply; + bsg_reply->reply_payload_rcv_len = 0; + bsg_reply->result = -ENOMSG; job->reply_len = sizeof(uint32_t); fc_bsg_jobdone(job); spin_lock_irq(q->queue_lock); -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Steffen Maier
job->reply_len = sizeof(uint32_t); fc_bsg_jobdone(job); spin_lock_irq(q->queue_lock); -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Marti

Re: [patch] zfcp: spin_lock_irqsave() is not nestable

2016-10-13 Thread Steffen Maier
be obvious in testing. Fixes: aceeffbb59bb ("zfcp: trace full payload of all SAN records (req,resp,iels)") Cc: <sta...@vger.kernel.org> #2.6.38+ Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> diff

Re: [PATCH 2/2] s390: zfcp: Remove unneeded linux/miscdevice.h include

2017-03-07 Thread Steffen Maier
_fmt(fmt) KMSG_COMPONENT ": " fmt -#include #include #include #include -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk W

Re: [PATCH] s390: scsi, use setup_timer instead of init_timer

2017-03-07 Thread Steffen Maier
t_timer function and data fields. It improves readability. Signed-off-by: Lukáš Korenčik <xkore...@fi.muni.cz> Signed-off-by: Jiri Slaby <jsl...@suse.cz> Cc: Steffen Maier <ma...@linux.vnet.ibm.com> Cc: Martin Schwidefsky <schwidef...@de.ibm.com> Cc: Heiko Carstens

Re: [PATCH] s390: scsi, use setup_timer instead of init_timer

2017-06-29 Thread Steffen Maier
Hi Jiri, On 06/26/2017 02:06 PM, Jiri Slaby wrote: On 03/07/2017, 02:06 PM, Steffen Maier wrote: Thanks, Lukáš, Jiri, queued for next zfcp feature submission to linux-scsi as: "zfcp: use setup_timer instead of init_timer" Hi, was this actually submitted somewhere or did it fa

[PATCH v2] checkpatch: [HLP]LIST_HEAD is also declaration

2017-06-14 Thread Steffen Maier
Fixes the following false warning among others for LLIST_HEAD and PLIST_HEAD: WARNING: Missing a blank line after declarations #71: FILE: drivers/s390/scsi/zfcp_fsf.c:422: + struct hlist_node *tmp; + HLIST_HEAD(remove_queue); Signed-off-by: Steffen Maier <

Re: [PATCH v2] checkpatch: [HLP]LIST_HEAD is also declaration

2017-06-14 Thread Steffen Maier
_HEAD(name) struct hlist_head name = { .first = NULL } tools/include/linux/list.h:596:#define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL) tools/usb/usbip/libsrc/list.h:24:#define LIST_HEAD(name) \ On 06/14/2017 03:35 PM, Steffen Maier wrote: > Fixes the following false warnin

[PATCH] checkpatch: HLIST_HEAD is also declaration

2017-06-14 Thread Steffen Maier
Fixes the following false warning: WARNING: Missing a blank line after declarations #71: FILE: drivers/s390/scsi/zfcp_fsf.c:422: + struct hlist_node *tmp; + HLIST_HEAD(remove_queue); Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> --- scripts/checkpatch.pl | 2

[PATCH] docs-rst: fix broken links to dynamic-debug-howto in kernel-parameters

2017-06-14 Thread Steffen Maier
Another place in lib/Kconfig.debug was already fixed in commit f8998c226587 ("lib/Kconfig.debug: correct documentation paths"). Fixes: 9d85025b0418 ("docs-rst: create an user's manual book") Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> --- Docume

Re: [PATCH] scsi: libiscsi: fix shifting of DID_REQUEUE host byte

2017-10-09 Thread Steffen Maier
ly wants to reset the other parts of result, but if so (and they are not 0 already anyway), preceed the set_host_byte() by: sc->result = 0; set_host_byte(sc, DID_REQUEUE); goto fault; } -- Mit freundlichen Grüßen / Kind regards Stef

Re: [PATCH] scsi: use set_host_byte instead of open-coding it

2017-10-11 Thread Steffen Maier
inally, I only thought about using set_host_byte in that one place fix of yours; I did not expect a full framework rework. -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koede

Re: [PATCH v2 1/1] scsi: fc: check for rport presence in fc_block_scsi_eh

2017-09-26 Thread Steffen Maier
p with offlined scsi_devices. I wonder if returning FAST_IO_FAIL would be more appropriate here in this case, in order to have scsi_eh let the pending I/O bubble up for a timely path failover? -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deuts

Re: [PATCH 3/3] zfcp: drop open coded assignments of timer_list.function

2017-11-16 Thread Steffen Maier
If this has not been picked/merged yet (it's not in Linus' tree yet), could you please drop it because it's buggy? This would buy me time to come up with a proper solution, otherwise I would be forced to fix it within 4.15-rc and am not sure I can make it. On 11/08/2017 03:17 PM, Steffen Maier

[PATCH 0/3] zfcp: timer_setup() refactoring feature for v4.15-rc1

2017-11-08 Thread Steffen Maier
pcoming merge window. In http://www.spinics.net/lists/linux-scsi/msg114581.html I saw a decision to have such changes go in via the timer tree. I would be happy with that. Kees Cook (1): zfcp: convert timers to use timer_setup() Steffen Maier (2): zfcp: purely mechanical update using timer API, plu

[PATCH 1/3] zfcp: convert timers to use timer_setup()

2017-11-08 Thread Steffen Maier
From: Kees Cook <keesc...@chromium.org> In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Steffen Maier <ma...@linux.vnet.ibm.com> Cc: Be

[PATCH 3/3] zfcp: drop open coded assignments of timer_list.function

2017-11-08 Thread Steffen Maier
type") Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Jens Remus <jre...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_fsf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fs

[PATCH 2/3] zfcp: purely mechanical update using timer API, plus blank lines

2017-11-08 Thread Steffen Maier
6fef928bba ("timer: Prepare to change timer callback argument type") Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Jens Remus <jre...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_erp.c | 5 ++--- drivers/s390/scsi/zfcp_ext.h | 2 +- drivers/s39

Re: [PATCH 0/3] scsi: arcmsr: Add driver parameter cmd_timeout for scsi command timeout setting

2018-05-09 Thread Steffen Maier
://www.ibm.com/support/knowledgecenter/ST3FR7_8.1.2/com.ibm.storwize.v7000.812.doc/svc_zs_statechange_3fgeri.html -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koede

Re: [PATCH 4.14 110/165] scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()

2018-05-24 Thread Steffen Maier
2 insertions(+) --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -720,6 +720,8 @@ static blk_status_t __scsi_error_from_ho int result) { switch (host_byte(result)) { + case DID_OK: + return BLK_STS_OK; case DID_TRANSPORT_FAILFAST:

Re: [PATCH 4.14 199/496] scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()

2018-05-28 Thread Steffen Maier
rn BLK_STS_OK; case DID_TRANSPORT_FAILFAST: return BLK_STS_TRANSPORT; case DID_TARGET_FAILURE: -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufs

[PATCH v2 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-13 Thread Steffen Maier
[dd] 8,81 2 2 0.000613741 0 C R 2048 + 32 [0] Signed-off-by: Steffen Maier <ma...@linux.ibm.com> --- include/trace/events/block.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/trace/events/block.h b/include/trace/events/bloc

[RFC v2] tracing/events: block: also try to get dev_t via driver core for some events

2018-04-13 Thread Steffen Maier
r check for q->kobj.parent is certainly racy and I don't have enough experience if it's good enough for a trace event. Since I don't know when above cases would occur, I'm not sure this is worth it. Signed-off-by: Steffen Maier <ma...@linux.ibm.com> --- include/trace/events/block.h | 12 ++

[PATCH v2 1/2] tracing/events: block: track and print if unplug was explicit or schedule

2018-04-13 Thread Steffen Maier
ck: make unplug timer trace event correspond to the schedule() unplug") and commit d9c978331790 ("block: remove block_unplug_timer() trace point"). Signed-off-by: Steffen Maier <ma...@linux.ibm.com> --- Changes since v1: Use 0 and 1 instead of false and true for __print_symbol

[PATCH v2 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steffen Maier
. Changes since v1: [PATCH v2 1/2] Use 0 and 1 instead of false and true for __print_symbolic table. Now "trace-cmd report" can decode it. [Steven Rostedt] Steffen Maier (3): tracing/events: block: track and print if unplug was explicit or schedule tracing/events: block: dev_t via d

[RFC] tracing/events: block: also try to get dev_t via driver core for some events

2018-04-13 Thread Steffen Maier
r check for q->kobj.parent is certainly racy and I don't have enough experience if it's good enough for a trace event. Since I don't know when above cases would occur, I'm not sure this is worth it. Signed-off-by: Steffen Maier <ma...@linux.ibm.com> --- include/trace/events/block.h | 12 ++

[PATCH 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-13 Thread Steffen Maier
[dd] 8,81 2 2 0.000613741 0 C R 2048 + 32 [0] Signed-off-by: Steffen Maier <ma...@linux.ibm.com> --- include/trace/events/block.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/trace/events/block.h b/include/trace/events/bloc

[PATCH 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steffen Maier
. Steffen Maier (3): tracing/events: block: track and print if unplug was explicit or schedule tracing/events: block: dev_t via driver core for plug and unplug events tracing/events: block: also try to get dev_t via driver core for some events include/trace/events/block.h | 33

[PATCH 1/2] tracing/events: block: track and print if unplug was explicit or schedule

2018-04-13 Thread Steffen Maier
ck: make unplug timer trace event correspond to the schedule() unplug") and commit d9c978331790 ("block: remove block_unplug_timer() trace point"). Signed-off-by: Steffen Maier <ma...@linux.ibm.com> --- include/trace/events/block.h | 10 +- 1 file changed, 9 inse

Re: [PATCH 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-16 Thread Steffen Maier
Hi Greg, On 04/15/2018 10:31 AM, Greg Kroah-Hartman wrote: On Fri, Apr 13, 2018 at 03:07:18PM +0200, Steffen Maier wrote: Complements v2.6.31 commit 55782138e47d ("tracing/events: convert block trace points to TRACE_EVENT()") to be equivalent to traditional blktrace output. Also t

Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-23 Thread Steffen Maier
7ef (``blktrace: fix context-info when mixed-using blk tracer and trace events'') -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittko

Re: [RESEND PATCH v1 2/2] trace: events: block: Add tag in block trace events

2018-04-23 Thread Steffen Maier
et/lists/linux-block/msg24691.html ("[PATCH v2 1/2] tracing/events: block: track and print if unplug was explicit or schedule") -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des A

Re: [PATCH 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-24 Thread Steffen Maier
kobject_del(>kobj); > blk_trace_remove_sysfs(dev); > kobject_put(>kobj); In contrast, this early return seems to do the pairwise put. > return ret; > } > } > unlock: > mutex_unlock(>sysfs_lock); > return ret; > } -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294

Re: [PATCH] [SCSI] zfcp: NULL check before some freeing functions is not needed.

2018-12-03 Thread Steffen Maier
+ mempool_destroy(adapter->pool.scsi_abort); + mempool_destroy(adapter->pool.qtcb_pool); + mempool_destroy(adapter->pool.status_read_req); + mempool_destroy(adapter->pool.sr_data); + mempool_destroy(adapter->pool.gid_pn); } /** -- Mit freundlichen Gruesse

kernel module to list sockets with their multicast group joins and respective processes

2007-07-16 Thread Steffen Maier
ce user friendlyness by * introduction of a procfs interface. * * Linux kernel module for Linux version 2.6. * * (c) 2007 Steffen Maier <[EMAIL PROTECTED]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publish

[PATCH 4/8] zfcp: fix lock imbalance by reworking request queue locking

2013-08-21 Thread Steffen Maier
e Cc: sta...@vger.kernel.org #2.6.35+ Cc: Andrew Morton Cc: David Howells Cc: Jens Axboe Cc: "Paul E. McKenney" Cc: Daniel Vetter Cc: linux-kernel@vger.kernel.org Signed-off-by: Steffen Maier --- drivers/s390/scsi/zfcp_qdio.c |8 + include/linux/wa

Re: PROBLEM: special sense code asc,ascq=04h,0Ch abort scsi scan in the middle

2013-10-14 Thread Steffen Maier
ice exists on " else { scsi_alloc_sdev() { ret = shost->hostt->slave_alloc() => zfcp_scsi_slave_alloc() { if (!unit && !(allow_lun_scan && npiv)) { put_device(>dev); return -ENXIO; [1]

Re: PROBLEM: special sense code asc,ascq=04h,0Ch abort scsi scan in the middle

2013-10-14 Thread Steffen Maier
On 10/14/2013 03:32 PM, Hannes Reinecke wrote: On 10/14/2013 03:18 PM, Hannes Reinecke wrote: On 10/14/2013 02:51 PM, Steffen Maier wrote: On 10/14/2013 01:13 PM, Hannes Reinecke wrote: On 10/13/2013 07:23 PM, Vaughan Cao wrote: [1.] One line summary of the problem: special sense code asc

Re: [PATCH] s390: scsi: zfcp_aux.c: Cleaning up missing null-terminate in conjunction with strncpy

2014-07-28 Thread Steffen Maier
t though, Acked-by: Steffen Maier - strncpy(busid, token, ZFCP_BUS_ID_SIZE); + strlcpy(busid, token, ZFCP_BUS_ID_SIZE); token = strsep(, ","); if (!token || kstrtoull(token, 0, (unsigned long long *) )) -- Mit freundlichen Grüßen / Kind regards Steffen Maier Lin

Re: [PATCH 0/3] scsi: arcmsr: Add driver parameter cmd_timeout for scsi command timeout setting

2018-05-09 Thread Steffen Maier
://www.ibm.com/support/knowledgecenter/ST3FR7_8.1.2/com.ibm.storwize.v7000.812.doc/svc_zs_statechange_3fgeri.html -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koede

Re: [PATCH] scsi: use set_host_byte instead of open-coding it

2017-10-11 Thread Steffen Maier
inally, I only thought about using set_host_byte in that one place fix of yours; I did not expect a full framework rework. -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koede

[PATCH 0/3] zfcp: timer_setup() refactoring feature for v4.15-rc1

2017-11-08 Thread Steffen Maier
pcoming merge window. In http://www.spinics.net/lists/linux-scsi/msg114581.html I saw a decision to have such changes go in via the timer tree. I would be happy with that. Kees Cook (1): zfcp: convert timers to use timer_setup() Steffen Maier (2): zfcp: purely mechanical update using timer API, plu

[PATCH 3/3] zfcp: drop open coded assignments of timer_list.function

2017-11-08 Thread Steffen Maier
type") Signed-off-by: Steffen Maier Reviewed-by: Jens Remus --- drivers/s390/scsi/zfcp_fsf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 51b81c0a0652..c8e368f0f299 100644 --- a/drivers/s390/scsi/

[PATCH 2/3] zfcp: purely mechanical update using timer API, plus blank lines

2017-11-08 Thread Steffen Maier
6fef928bba ("timer: Prepare to change timer callback argument type") Signed-off-by: Steffen Maier Reviewed-by: Jens Remus --- drivers/s390/scsi/zfcp_erp.c | 5 ++--- drivers/s390/scsi/zfcp_ext.h | 2 +- drivers/s390/scsi/zfcp_fsf.c | 1 + 3 files changed, 4 insertions(+), 4 dele

[PATCH 1/3] zfcp: convert timers to use timer_setup()

2017-11-08 Thread Steffen Maier
From: Kees Cook In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Steffen Maier Cc: Benjamin Block Cc: Martin Schwidefsky Cc: Heiko Carstens Cc

[PATCH 1/2] tracing/events: block: track and print if unplug was explicit or schedule

2018-04-13 Thread Steffen Maier
ck: make unplug timer trace event correspond to the schedule() unplug") and commit d9c978331790 ("block: remove block_unplug_timer() trace point"). Signed-off-by: Steffen Maier --- include/trace/events/block.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) dif

[RFC] tracing/events: block: also try to get dev_t via driver core for some events

2018-04-13 Thread Steffen Maier
r check for q->kobj.parent is certainly racy and I don't have enough experience if it's good enough for a trace event. Since I don't know when above cases would occur, I'm not sure this is worth it. Signed-off-by: Steffen Maier --- include/trace/events/block.h | 12 +--- 1 file changed, 9

[PATCH 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-13 Thread Steffen Maier
[dd] 8,81 2 2 0.000613741 0 C R 2048 + 32 [0] Signed-off-by: Steffen Maier --- include/trace/events/block.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/trace/events/block.h b/include/trace/events/block.h index a13613d27c

[PATCH 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steffen Maier
. Steffen Maier (3): tracing/events: block: track and print if unplug was explicit or schedule tracing/events: block: dev_t via driver core for plug and unplug events tracing/events: block: also try to get dev_t via driver core for some events include/trace/events/block.h | 33

[RFC v2] tracing/events: block: also try to get dev_t via driver core for some events

2018-04-13 Thread Steffen Maier
r check for q->kobj.parent is certainly racy and I don't have enough experience if it's good enough for a trace event. Since I don't know when above cases would occur, I'm not sure this is worth it. Signed-off-by: Steffen Maier --- include/trace/events/block.h | 12 +--- 1 file changed, 9

[PATCH v2 1/2] tracing/events: block: track and print if unplug was explicit or schedule

2018-04-13 Thread Steffen Maier
ck: make unplug timer trace event correspond to the schedule() unplug") and commit d9c978331790 ("block: remove block_unplug_timer() trace point"). Signed-off-by: Steffen Maier --- Changes since v1: Use 0 and 1 instead of false and true for __print_symbolic table. Now "trace

[PATCH v2 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steffen Maier
. Changes since v1: [PATCH v2 1/2] Use 0 and 1 instead of false and true for __print_symbolic table. Now "trace-cmd report" can decode it. [Steven Rostedt] Steffen Maier (3): tracing/events: block: track and print if unplug was explicit or schedule tracing/events: block: dev_t via d

[PATCH v2 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-13 Thread Steffen Maier
[dd] 8,81 2 2 0.000613741 0 C R 2048 + 32 [0] Signed-off-by: Steffen Maier --- include/trace/events/block.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/trace/events/block.h b/include/trace/events/block.h index e90bb6eb80

Re: [RESEND PATCH v1 2/2] trace: events: block: Add tag in block trace events

2018-04-23 Thread Steffen Maier
g24691.html ("[PATCH v2 1/2] tracing/events: block: track and print if unplug was explicit or schedule") -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Ge

Re: [PATCH 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-16 Thread Steffen Maier
Hi Greg, On 04/15/2018 10:31 AM, Greg Kroah-Hartman wrote: On Fri, Apr 13, 2018 at 03:07:18PM +0200, Steffen Maier wrote: Complements v2.6.31 commit 55782138e47d ("tracing/events: convert block trace points to TRACE_EVENT()") to be equivalent to traditional blktrace output. Also t

Re: [RESEND PATCH v1 1/2] trace: events: scsi: Add tag in SCSI trace events

2018-04-23 Thread Steffen Maier
7ef (``blktrace: fix context-info when mixed-using blk tracer and trace events'') -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittko

Re: [PATCH 2/2] tracing/events: block: dev_t via driver core for plug and unplug events

2018-04-24 Thread Steffen Maier
kobject_del(>kobj); > blk_trace_remove_sysfs(dev); > kobject_put(>kobj); In contrast, this early return seems to do the pairwise put. > return ret; > } > } > unlock: > mutex_unlock(>sysfs_lock); > return ret; > } -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294

Re: [PATCH] s390: scsi, use setup_timer instead of init_timer

2017-06-29 Thread Steffen Maier
Hi Jiri, On 06/26/2017 02:06 PM, Jiri Slaby wrote: On 03/07/2017, 02:06 PM, Steffen Maier wrote: Thanks, Lukáš, Jiri, queued for next zfcp feature submission to linux-scsi as: "zfcp: use setup_timer instead of init_timer" Hi, was this actually submitted somewhere or did it fa

Re: [PATCH] scsi: libiscsi: fix shifting of DID_REQUEUE host byte

2017-10-09 Thread Steffen Maier
sc->result = 0; set_host_byte(sc, DID_REQUEUE); goto fault; } -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Ko

Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-10 Thread Steffen Maier
FSF_LUN_ALREADY_OPEN: break; case FSF_PORT_BOXED: Acked-by: Steffen Maier # for zfcp -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development https://www.ibm.com/privacy/us/en/ IBM Deutschland Research & Development GmbH Vorsitzender des Aufsicht

Re: [PATCH] scsi: zfcp: fix use-after-free in zfcp_unit_remove

2020-11-27 Thread Steffen Maier
refs might continue to exist after device_unregister was called: device_register() --+ get_device() -|--+ device_unregister() --+ | put_device() ----+ -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development https://www.i

Re: [PATCH] scsi: zfcp: fix indentation coding style issue

2020-11-27 Thread Steffen Maier
; -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development https://www.ibm.com/privacy/us/en/ IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Matthias Hartmann Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boebli

Re: Linux 5.3-rc1

2019-07-23 Thread Steffen Maier
virt_boundary); Wild guess: Do we need to make the call to blk_queue_virt_boundary() conditional? Cf. https://www.spinics.net/lists/linux-scsi/msg131077.html ("[PATCH v2] iser: explicitly set shost max_segment_size if non virtual boundary devices") -- Mit freundlichen Grues

Re: Linux 5.3-rc1

2019-07-23 Thread Steffen Maier
impse with zfcp) -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development https://www.ibm.com/privacy/us/en/ IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Matthias Hartmann Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblin

Re: [PATCH 7/7] drivers/s390/scsi/zfcp_cfdc.c: remove invalid reference to list iterator variable

2012-08-20 Thread Steffen Maier
Hi Julia, sorry for the long delay until I finally responded. Thanks a lot for your report and patch. I'll queue this and send it for v3.6rcX hopefully soon. On 07/08/2012 01:37 PM, Julia Lawall wrote: > From: Julia Lawall > > If list_for_each_entry, etc complete a traversal of the list, the

Re: [PATCH v2 1/1] scsi: fc: check for rport presence in fc_block_scsi_eh

2017-09-26 Thread Steffen Maier
ing FAST_IO_FAIL would be more appropriate here in this case, in order to have scsi_eh let the pending I/O bubble up for a timely path failover? -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsic

Re: [PATCH 3/3] zfcp: drop open coded assignments of timer_list.function

2017-11-16 Thread Steffen Maier
If this has not been picked/merged yet (it's not in Linus' tree yet), could you please drop it because it's buggy? This would buy me time to come up with a proper solution, otherwise I would be forced to fix it within 4.15-rc and am not sure I can make it. On 11/08/2017 03:17 PM, Steffen Maier

[PATCH 1/3] docs: s390: restore important non-kdoc parts of s390dbf.rst

2019-07-03 Thread Steffen Maier
Complements previous ("s390: include/asm/debug.h add kerneldoc markups") which seemed to have dropped important non-kdoc parts such as user space interface (level, size, flush) as well as views and caution regarding strings in the sprintf view. Signed-off-by: Steffen Maier --- Doc

Re: [PATCH v2] Revert "zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()"

2020-06-18 Thread Steffen Maier
Fixes: f40609d1591f ("zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()") Link: https://bugzilla.redhat.com/show_bug.cgi?id=1847832 Signed-off-by: Greg Kroah-Hartman Reviewed-by: Steffen Maier --- v2: fix read/write confusion in the changelog, thanks to Steffen for the

Re: [PATCH] Revert "zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()"

2020-06-17 Thread Steffen Maier
__ATTR(hot_add, 0400, hot_add_show, NULL); static ssize_t hot_remove_store(struct class *class, struct class_attribute *attr, -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development https://www.ibm.com/privacy/us/en/ IBM Deutschland Rese

Re: [PATCH 4.14 110/165] scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()

2018-05-24 Thread Steffen Maier
t_byte(result)) { + case DID_OK: + return BLK_STS_OK; case DID_TRANSPORT_FAILFAST: return BLK_STS_TRANSPORT; case DID_TARGET_FAILURE: -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development IBM Deutschland Research

Re: [PATCH 4.14 199/496] scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()

2018-05-28 Thread Steffen Maier
int result) { switch (host_byte(result)) { + case DID_OK: + return BLK_STS_OK; case DID_TRANSPORT_FAILFAST: return BLK_STS_TRANSPORT; case DID_TARGET_FAILURE: -- Mit freundlichen Gruessen / Kind regards Steffen Maier Li

Re: [RFC PATCH] scsi: fix oops in scsi_uninit_cmd()

2019-02-19 Thread Steffen Maier
dev); } /** -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development https://www.ibm.com/privacy/us/en/ IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Matthias Hartmann Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294

Re: [PATCH] [SCSI] zfcp: NULL check before some freeing functions is not needed.

2018-12-03 Thread Steffen Maier
+ mempool_destroy(adapter->pool.scsi_abort); + mempool_destroy(adapter->pool.qtcb_pool); + mempool_destroy(adapter->pool.status_read_req); + mempool_destroy(adapter->pool.sr_data); + mempool_destroy(adapter->pool.gid_pn); } /** -- Mit freundlichen Gruesse

Re: [patch] mm, mempool: do not allow atomic resizing

2015-03-11 Thread Steffen Maier
for the zfcp part: Acked-by: Steffen Maier On 03/08/2015 04:19 AM, David Rientjes wrote: Allocating a large number of elements in atomic context could quickly deplete memory reserves, so just disallow atomic resizing entirely. Nothing currently uses mempool_resize() with anything other than

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-28 Thread Steffen Maier
On 10/13/2016 06:24 PM, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:15:25PM +0200, Steffen Maier wrote: I'm puzzled. $ git bisect start fc_bsg master 3087864ce3d7282f59021245d8a5f83ef1caef18 is the first bad commit commit 3087864ce3d7282f59021245d8a5f83ef1caef18 Author: Johannes

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-28 Thread Steffen Maier
On 10/28/2016 01:31 PM, Hannes Reinecke wrote: On 10/28/2016 11:53 AM, Steffen Maier wrote: On 10/13/2016 06:24 PM, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:15:25PM +0200, Steffen Maier wrote: I'm puzzled. $ git bisect start fc_bsg master

Re: [PATCH 2/2] s390: zfcp: Remove unneeded linux/miscdevice.h include

2017-03-07 Thread Steffen Maier
ot;: " fmt -#include #include #include #include -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294

Re: [PATCH] s390: scsi, use setup_timer instead of init_timer

2017-03-07 Thread Steffen Maier
ata fields. It improves readability. Signed-off-by: Lukáš Korenčik Signed-off-by: Jiri Slaby Cc: Steffen Maier Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: --- drivers/s390/scsi/zfcp_erp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/s390/scsi/zfcp_erp.c b/dr

Re: [PATCH v2 00/16] Convert FibreChannel bsg code to use bsg-lib

2016-10-12 Thread Steffen Maier
.h | 4 + include/scsi/libfc.h | 2 +- include/scsi/scsi_transport_fc.h | 62 ++---- 20 files changed, 745 insertions(+), 856 deletions(-) -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & De

Re: [patch] zfcp: spin_lock_irqsave() is not nestable

2016-10-13 Thread Steffen Maier
be obvious in testing. Fixes: aceeffbb59bb ("zfcp: trace full payload of all SAN records (req,resp,iels)") Cc: #2.6.38+ Signed-off-by: Dan Carpenter Signed-off-by: Steffen Maier diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c index 637cf89..5810019

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Steffen Maier
quest_len < sizeof(uint32_t)) { BUG_ON(job->reply_len < sizeof(uint32_t)); - job->reply->reply_payload_rcv_len = 0; - job->reply->result = -ENOMSG; + bsg_reply = job->reply; + bsg_rep

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-13 Thread Steffen Maier
fc_bsg_jobdone(job); spin_lock_irq(q->queue_lock); -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz d

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Steffen Maier
Hi Johannes, On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: Hm, still behaves for me like

[PATCH] checkpatch: HLIST_HEAD is also declaration

2017-06-14 Thread Steffen Maier
Fixes the following false warning: WARNING: Missing a blank line after declarations #71: FILE: drivers/s390/scsi/zfcp_fsf.c:422: + struct hlist_node *tmp; + HLIST_HEAD(remove_queue); Signed-off-by: Steffen Maier --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion

[PATCH] docs-rst: fix broken links to dynamic-debug-howto in kernel-parameters

2017-06-14 Thread Steffen Maier
Another place in lib/Kconfig.debug was already fixed in commit f8998c226587 ("lib/Kconfig.debug: correct documentation paths"). Fixes: 9d85025b0418 ("docs-rst: create an user's manual book") Signed-off-by: Steffen Maier --- Documentation/admin-guide/kernel-parameters.tx

[PATCH v2] checkpatch: [HLP]LIST_HEAD is also declaration

2017-06-14 Thread Steffen Maier
Fixes the following false warning among others for LLIST_HEAD and PLIST_HEAD: WARNING: Missing a blank line after declarations #71: FILE: drivers/s390/scsi/zfcp_fsf.c:422: + struct hlist_node *tmp; + HLIST_HEAD(remove_queue); Signed-off-by: Steffen Maier --- Changes from v1

  1   2   >