Re: [PATCH] bsg: convert to use blk-mq

2018-10-26 Thread Benjamin Block
On Fri, Oct 26, 2018 at 10:08:30AM -0600, Jens Axboe wrote: > On 10/26/18 10:06 AM, Benjamin Block wrote: > > On Thu, Oct 25, 2018 at 05:12:59PM -0600, Jens Axboe wrote: > >> On 10/23/18 12:07 PM, Jens Axboe wrote: > >>> On 10/23/18 11:40 AM, Benjamin Block wrote: &

Re: [PATCH] bsg: convert to use blk-mq

2018-10-26 Thread Benjamin Block
On Thu, Oct 25, 2018 at 05:12:59PM -0600, Jens Axboe wrote: > On 10/23/18 12:07 PM, Jens Axboe wrote: > > On 10/23/18 11:40 AM, Benjamin Block wrote: > >> > >> So I tried 4.19.0 with only the two patches from you: > >> http://git.kernel.dk/cgit/

Re: [PATCH] bsg: convert to use blk-mq

2018-10-23 Thread Benjamin Block
On Mon, Oct 22, 2018 at 06:38:36AM -0600, Jens Axboe wrote: > On 10/22/18 4:03 AM, Benjamin Block wrote: > > On Fri, Oct 19, 2018 at 09:50:53AM -0600, Jens Axboe wrote: > > > > Ok so, that gets past the stage where we initialize the queues. Simple > >

Re: [PATCH] bsg: convert to use blk-mq

2018-10-22 Thread Benjamin Block
On Mon, Oct 22, 2018 at 06:38:36AM -0600, Jens Axboe wrote: > On 10/22/18 4:03 AM, Benjamin Block wrote: > > On Fri, Oct 19, 2018 at 09:50:53AM -0600, Jens Axboe wrote: > >> On 10/19/18 9:01 AM, Benjamin Block wrote: > >>> On Wed, Oct 17, 2018 at 10:01:16AM -0600, Jen

Re: [PATCH] bsg: convert to use blk-mq

2018-10-22 Thread Benjamin Block
On Fri, Oct 19, 2018 at 09:50:53AM -0600, Jens Axboe wrote: > On 10/19/18 9:01 AM, Benjamin Block wrote: > > On Wed, Oct 17, 2018 at 10:01:16AM -0600, Jens Axboe wrote: > >> On 10/17/18 9:55 AM, Benjamin Block wrote: > >>> On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jen

Re: [PATCH] bsg: convert to use blk-mq

2018-10-19 Thread Benjamin Block
On Fri, Oct 19, 2018 at 09:50:53AM -0600, Jens Axboe wrote: > On 10/19/18 9:01 AM, Benjamin Block wrote: > > On Wed, Oct 17, 2018 at 10:01:16AM -0600, Jens Axboe wrote: > >> On 10/17/18 9:55 AM, Benjamin Block wrote: > >>> On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jen

Re: [PATCH] bsg: convert to use blk-mq

2018-10-19 Thread Benjamin Block
On Wed, Oct 17, 2018 at 10:01:16AM -0600, Jens Axboe wrote: > On 10/17/18 9:55 AM, Benjamin Block wrote: > > On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jens Axboe wrote: > >> Requires a few changes to the FC transport class as well. > >> > >> Cc: Johannes Thumshi

Re: [PATCH] bsg: convert to use blk-mq

2018-10-17 Thread Benjamin Block
On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jens Axboe wrote: > Requires a few changes to the FC transport class as well. > > Cc: Johannes Thumshirn > Cc: Benjamin Block > Cc: linux-scsi@vger.kernel.org > Signed-off-by: Jens Axboe > --- > block/bsg-lib.

Re: [PATCH 9/9] bsg: split handling of SCSI CDBs vs transport requeues

2017-10-24 Thread Benjamin Block
makes use of it, but only reading as far as I could make out after browsing the code for a bit. I did a quick test with that change in place and that seems to work fine now. As far as my tests go, they behave as they did before.

Re: [PATCH 9/9] bsg: split handling of SCSI CDBs vs transport requeues

2017-10-20 Thread Benjamin Block
On Fri, Oct 20, 2017 at 06:26:30PM +0200, Christoph Hellwig wrote: > On Thu, Oct 19, 2017 at 05:59:33PM +0200, Benjamin Block wrote: > > > +#define ptr64(val) ((void __user *)(uintptr_t)(val)) > > > > Better to reflect the special property, that it is a user pointer, in &

Re: [PATCH 9/9] bsg: split handling of SCSI CDBs vs transport requeues

2017-10-19 Thread Benjamin Block
*/ > blk_queue_bounce_limit(q, BLK_BOUNCE_HIGH); > queue_flag_set_unlocked(QUEUE_FLAG_BIDI, q); > - queue_flag_set_unlocked(QUEUE_FLAG_SCSI_PASSTHROUGH, q); > return 0; > } > > diff --git a/include/linux/bsg-lib.h b/include/linux/bsg-lib.h > index 08

Re: [PATCH 8/9] block: pass full fmode_t to blk_verify_command

2017-10-16 Thread Benjamin Block
> + return blk_verify_command(cmd, filp->f_mode); > } > > static int > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h > index 02fa42d24b52..75fe9d45ead1 100644 > --- a/include/linux/blkdev.h > +++ b/include/linux/blkdev.h > @@ -1371,7 +1371,7 @@ static

Re: [PATCH 7/9] bsg-lib: remove bsg_job.req

2017-10-16 Thread Benjamin Block
/include/linux/bsg-lib.h b/include/linux/bsg-lib.h > index 402223c95ce1..08762d297cbd 100644 > --- a/include/linux/bsg-lib.h > +++ b/include/linux/bsg-lib.h > @@ -40,7 +40,6 @@ struct bsg_buffer { > struct bsg_job { > str

Re: [PATCH 6/9] bsg-lib: introduce a timeout field in struct bsg_job

2017-10-16 Thread Benjamin Block
clude/linux/bsg-lib.h > index b1be0233ce35..402223c95ce1 100644 > --- a/include/linux/bsg-lib.h > +++ b/include/linux/bsg-lib.h > @@ -44,6 +44,8 @@ struct bsg_job { > > struct kref kref; > > + unsigned int timeout; > + > /* Transport/driver specific re

[PATCH v2 1/1] bsg-lib: fix use-after-free under memory-pressure

2017-10-01 Thread Benjamin Block
o do it when the request is taken from the emergency-pool of the backing mempool. Fixes: 50b4d485528d ("bsg-lib: fix kernel panic resulting from missing allocation of reply-buffer") Cc: <sta...@vger.kernel.org> # 4.11+ Reviewed-by: Christoph Hellwig <h...@lst.de>

Re: [PATCH 1/1] bsg-lib: fix use-after-free under memory-pressure

2017-09-25 Thread Benjamin Block
isting names and name the new helper bsg_initialize_rq; > OK, I can change that. Beste Grüße / Best regards, - Benjamin Block > > Except for that the patch looks fine to me: > > Reviewed-by: Christoph Hellwig <h...@ls

Re: Is the possible cross-talking between unrelated file-descriptors on bsg-device by design?

2017-09-21 Thread Benjamin Block
On Tue, Sep 19, 2017 at 02:16:26PM -0400, Douglas Gilbert wrote: > On 2017-09-19 10:56 AM, Benjamin Block wrote: > > Hello linux-block, > > > > I wrote some tests recently to test patches against bsg.c and bsg-lib.c, > > and while writing those I noticed something str

[PATCH 1/1] bsg-lib: fix use-after-free under memory-pressure

2017-09-21 Thread Benjamin Block
lt;sta...@vger.kernel.org> # 4.11+ Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- Notes: I did test this on zFCP with FC CT commands send via the ioctl() and write() system-call. That did work fine. But I would very much appreciate if anyone could run this against

Is the possible cross-talking between unrelated file-descriptors on bsg-device by design?

2017-09-19 Thread Benjamin Block
? Beste Grüße / Best regards, - Benjamin Block -- Linux on z Systems Development / IBM Systems & Technology Group IBM Deutschland Research & Development GmbH Vorsitz. AufsR.: Martina K

Re: [PATCH 1/2] bsg-lib: fix kernel panic resulting from missing allocation of reply-buffer

2017-09-06 Thread Benjamin Block
On Wed, Sep 06, 2017 at 08:07:43AM -0600, Jens Axboe wrote: > On 09/06/2017 07:44 AM, Christoph Hellwig wrote: > > From: Benjamin Block <bbl...@linux.vnet.ibm.com> > > > > Since we split the scsi_request out of struct request bsg fails to > > provide a reply-buff

Re: [PATCH v2 1/1] bsg-lib: fix kernel panic resulting from missing allocation of reply-buffer

2017-08-24 Thread Benjamin Block
t doesn't really itself destroy the job-struct anymore. If there are other thing amiss I can change that along with them, if it bothers poeple. Beste Grüße / Best regards, - Benjamin Block >

[PATCH v2 0/1] bsg: fix regression resulting in panics when sending commands via BSG

2017-08-23 Thread Benjamin Block
are more than welcome :) Beste Grüße / Best regards, - Benjamin Block Benjamin Block (1): bsg-lib: fix kernel panic resulting from missing allocation of reply-buffer block/bsg-lib.c

[PATCH v2 1/1] bsg-lib: fix kernel panic resulting from missing allocation of reply-buffer

2017-08-23 Thread Benjamin Block
a buffer for the reply-data. This means, struct bsg_job is not allocated separately anymore, but as part of struct request allocation - similar to struct scsi_cmd. Reflect this in the function names that used to handle creation/destruction of struct bsg_job. Reported-by: Steffen Maier <ma...@lin

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-14 Thread Benjamin Block
On Sun, Aug 13, 2017 at 04:39:40PM +0200, Christoph Hellwig wrote: > On Fri, Aug 11, 2017 at 06:01:42PM +0200, Benjamin Block wrote: > > When the BSG interface is used with bsg-lib, and the user sends a > > Bidirectional command - so when he gives an input- and output-buffer > &g

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-14 Thread Benjamin Block
allocate the sense data, which is used as reply buffer in bsg. > > Reported-by: Steffen Maier <ma...@linux.vnet.ibm.com> > Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> > Fixes: 82ed4db499b8 ("block: split scsi_request out of struct request") &g

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-11 Thread Benjamin Block
On Fri, Aug 11, 2017 at 05:35:53PM +0200, Christoph Hellwig wrote: > On Fri, Aug 11, 2017 at 05:32:03PM +0200, Benjamin Block wrote: > > So when the bsg interface is used with something different than the > > bsg-lib request queue? > > Yes. > > > I haven't actually

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-11 Thread Benjamin Block
On Fri, Aug 11, 2017 at 04:36:49PM +0200, Christoph Hellwig wrote: > On Fri, Aug 11, 2017 at 03:49:29PM +0200, Benjamin Block wrote: > > On Fri, Aug 11, 2017 at 11:14:15AM +0200, Christoph Hellwig wrote: > > > But patch 1 still creates an additional copy of the sense data for &

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-11 Thread Benjamin Block
54040 Mon Sep 17 00:00:00 2001 > From: Christoph Hellwig <h...@lst.de> > Date: Fri, 11 Aug 2017 11:03:29 +0200 > Subject: bsg-lib: allocate sense data for each request > > Since we split the scsi_request out of the request the driver is supposed > to provide storage for the

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-10 Thread Benjamin Block
On Fri, Aug 11, 2017 at 12:10:38AM +0200, Benjamin Block wrote: > On Thu, Aug 10, 2017 at 11:32:17AM +0200, Christoph Hellwig wrote: > > We can't use an on-stack buffer for the sense data, as drivers will > > dma to it. So we should reuse the SCSI init_rq_fn() for the

Re: [RFC PATCH 5/6] bsg: reduce unnecessary arguments for bsg_map_hdr()

2017-08-10 Thread Benjamin Block
On Thu, Aug 10, 2017 at 11:35:31AM +0200, Christoph Hellwig wrote: > On Wed, Aug 09, 2017 at 04:11:19PM +0200, Benjamin Block wrote: > > Since struct bsg_command is now used in every calling case, we don't > > need separation of arguments anymore that are contained in the same

Re: [RFC PATCH 4/6] bsg: refactor ioctl to use regular BSG-command infrastructure for SG_IO

2017-08-10 Thread Benjamin Block
On Thu, Aug 10, 2017 at 10:24:56AM +0200, Johannes Thumshirn wrote: > On Wed, Aug 09, 2017 at 04:11:18PM +0200, Benjamin Block wrote: > > + return 0 == (bc->hdr.flags & BSG_FLAG_Q_AT_TAIL); > > return !(bc->hdr.flags & BSG_FLAG_Q_AT_TAIL); and make the function r

Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-10 Thread Benjamin Block
this is gonna experience and after that we can still think about improving it further beyond what the rest of the patch set already does, if that is necessary. Beste Grüße / Best regards,

[RFC PATCH 1/6] bsg: fix kernel panic resulting from missing allocation of a reply-buffer

2017-08-09 Thread Benjamin Block
is turned off. Last Breaking-Event-Address: [<03ff801e41d6>] zfcp_fc_ct_job_handler+0x3e/0x48 [zfcp] Kernel panic - not syncing: Fatal exception in interrupt To prevent this, allocate a buffer when the BSG blk-request is setup, and before it is queued for LLD processing. Reported-by:

[RFC PATCH 0/6] bsg: fix regression resulting in panics when sending commands via BSG and some sanity cleanups

2017-08-09 Thread Benjamin Block
ustom code to test the read/write interface of BSG. Reviews are more than welcome :) Beste Grüße / Best regards, - Benjamin Block Benjamin Block (6): bsg: fix kernel panic resulting from missing

[RFC PATCH 3/6] bsg: scsi-transport: add compile-tests to prevent reply-buffer overflows

2017-08-09 Thread Benjamin Block
it easier to notice accidental violations add an explicit compile- time check that tests whether the implementations' reply buffer is at most as large as bsg_job's. To do so, we have to move the size-define from bsg.c to a common header. Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.

[RFC PATCH 6/6] bsg: reduce unnecessary arguments for blk_complete_sgv4_hdr_rq()

2017-08-09 Thread Benjamin Block
Since struct bsg_command is now used in every calling case, we don't need separation of arguments anymore that are contained in the same bsg_command. Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- block/bsg.c | 20 +--- 1 file changed, 9 insertions(+), 11 del

[RFC PATCH 5/6] bsg: reduce unnecessary arguments for bsg_map_hdr()

2017-08-09 Thread Benjamin Block
Since struct bsg_command is now used in every calling case, we don't need separation of arguments anymore that are contained in the same bsg_command. Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- block/bsg.c | 13 ++--- 1 file changed, 6 insertions(+), 7 del

[RFC PATCH 4/6] bsg: refactor ioctl to use regular BSG-command infrastructure for SG_IO

2017-08-09 Thread Benjamin Block
unification is not possible, as it then would also enqueue SG_IO commands in the BGS devices's command list, but this is only for the read- and write-calls. Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- block/bsg.c | 60

[RFC PATCH 2/6] bsg: assign sense_len instead of fixed SCSI_SENSE_BUFFERSIZE

2017-08-09 Thread Benjamin Block
ply. * * ... */ Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- block/bsg-lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/bsg-lib.c b/block/bsg-lib.c index c4513b23f57a..c7c2c6bbb5ae 100644 --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -147

Re: [PATCH 00/22] zfcp fixes and cleanups

2017-08-08 Thread Benjamin Block
into 4.14 as one series. So if it is OK with you, just apply the complete series for that. Thanks. Beste Grüße / Best regards, - Benjamin Block -- Linux on z Systems Development / IBM Systems & Technology G

[PATCH 22/22] zfcp: early returns for traces disabled via level

2017-07-28 Thread Benjamin Block
levels"). Signed-off-by: Martin Peschke <mpesc...@linux.vnet.ibm.com> [ma...@linux.vnet.ibm.com: rebase, reword, default level 3 branch prediction] Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Bl

[PATCH 17/22] zfcp: fix kernel doc comment typos for struct zfcp_dbf_scsi

2017-07-28 Thread Benjamin Block
From: Steffen Maier <ma...@linux.vnet.ibm.com> Improves commit 250a1352b95e ("[SCSI] zfcp: Redesign of the debug tracing for SCSI records.") Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed

[PATCH 05/22] zfcp: fix queuecommand for scsi_eh commands when DIX enabled

2017-07-28 Thread Benjamin Block
for DIF/DIX") Cc: <sta...@vger.kernel.org> #2.6.36+ Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_fsf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH 01/22] zfcp: replace zfcp_qdio_sbale_count by sg_nents

2017-07-28 Thread Benjamin Block
ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_fsf.c | 3 +-- drivers/s390/scsi/zfcp_qdio.h | 15 --- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_

[PATCH 18/22] zfcp: clean up redundant code with fall through in link down SRB switch case

2017-07-28 Thread Benjamin Block
From: Martin Peschke <mpesc...@linux.vnet.ibm.com> Signed-off-by: Martin Peschke <mpesc...@linux.vnet.ibm.com> [ma...@linux.vnet.ibm.com: re-worded short description for more details] Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl.

[PATCH 16/22] zfcp: use endianness conversions with common FC(P) struct fields

2017-07-28 Thread Benjamin Block
zfcp_fsf.c:507:36:got restricted __be64 [usertype] fl_wwnn drivers/s390/scsi/zfcp_fc.h:269:46: warning: restricted __be32 degrades to integer drivers/s390/scsi/zfcp_fc.h:270:29: error: incompatible types in comparison expression (different base types) Signed-off-by: Steffen Maier <ma...@linux.vn

[PATCH 20/22] zfcp: clean up a member of struct zfcp_qdio that was assigned but never used

2017-07-28 Thread Benjamin Block
to trace.") but kept and needlessly assigned a now no longer used struct field. Signed-off-by: Martin Peschke <mpesc...@linux.vnet.ibm.com> [ma...@linux.vnet.ibm.com: reword, added git history] Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block

[PATCH 00/22] zfcp fixes and cleanups

2017-07-28 Thread Benjamin Block
- 12 are driver fixes that are all marked for stable as well The set applies to the fixes branch of James' scsi.git. Beste Grüße / Best regards, - Benjamin Block Benjamin Block (2): zfcp: convert

[PATCH 21/22] zfcp: clean up unnecessary module_param_named() with no_auto_port_rescan

2017-07-28 Thread Benjamin Block
Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_fc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 11/22] zfcp: trace HBA FSF response by default on dismiss or timedout late response

2017-07-28 Thread Benjamin Block
q_complete() handles this and returns early. All other FSF request types are handled separately and as described above. Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Fixes: 8a36e4532ea1 ("[SCSI] zfcp: enhancement of zfcp debug features") Fixes: 2e261af84cdb ("[SCSI] zfcp: Only colle

[PATCH 15/22] zfcp: use common code fcp_cmnd and fcp_resp with union in fsf_qtcb_bottom_io

2017-07-28 Thread Benjamin Block
error-prone type casts. This change is possible since v2.6.33 commit 4318e08c84e4 ("[SCSI] zfcp: Update FCP protocol related code"). Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Bloc

[PATCH 04/22] zfcp: convert bool-definitions to use 'true' instead of '1'

2017-07-28 Thread Benjamin Block
Better form and cleans remaining warnings. Found with scripts/coccinelle/misc/boolinit.cocci. Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_qdio.c | 2 +- drivers/s390/scsi/zfcp_scsi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 07/22] zfcp: fix capping of unsuccessful GPN_FT SAN response trace records

2017-07-28 Thread Benjamin Block
oad of all SAN records (req,resp,iels)") Fixes: 2c55b750a884 ("[SCSI] zfcp: Redesign of the debug tracing for SAN records.") Cc: <sta...@vger.kernel.org> #2.6.38+ Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.

[PATCH 06/22] zfcp: add handling for FCP_RESID_OVER to the fcp ingress path

2017-07-28 Thread Benjamin Block
. Reported-by: Luke M. Hopkins <lmhop...@us.ibm.com> Reviewed-by: Steffen Maier <ma...@linux.vnet.ibm.com> Fixes: 553448f6c483 ("[SCSI] zfcp: Message cleanup") Fixes: ea127f975424 ("[PATCH] s390 (7/7): zfcp host adapter.") (tglx/history.git) Cc: <sta...@vger.kernel.or

[PATCH 19/22] zfcp: clean up no longer existent prototype from zfcp API header

2017-07-28 Thread Benjamin Block
n Peschke <mpesc...@linux.vnet.ibm.com> Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_ext.h | 1 - 1 file changed, 1 del

[PATCH 10/22] zfcp: fix payload with full FCP_RSP IU in SCSI trace records

2017-07-28 Thread Benjamin Block
250a1352b95e ("[SCSI] zfcp: Redesign of the debug tracing for SCSI records.") Cc: <sta...@vger.kernel.org> #2.6.38+ Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_dbf.c | 21 +

[PATCH 08/22] zfcp: fix passing fsf_req to SCSI trace on TMF to correlate with HBA

2017-07-28 Thread Benjamin Block
nything because adapter stopped. For these cases it's correct to pass NULL for fsf_req to _zfcp_dbf_scsi(). Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Fixes: 8a36e4532ea1 ("[SCSI] zfcp: enhancement of zfcp debug features") Cc: <sta...@vger.kernel.org> #2.6.38+ Reviewed-by: Benja

[PATCH 09/22] zfcp: fix missing trace records for early returns in TMF eh handlers

2017-07-28 Thread Benjamin Block
handlers in zfcp") Cc: <sta...@vger.kernel.org> #2.6.38+ Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_scsi.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH 14/22] zfcp: clarify that we don't need "link" test on failed open port

2017-07-28 Thread Benjamin Block
From: Steffen Maier <ma...@linux.vnet.ibm.com> Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- drivers/s390/scsi/zfcp_fsf.c | 4 +++- 1 file cha

[PATCH 12/22] zfcp: trace high part of "new" 64 bit SCSI LUN

2017-07-28 Thread Benjamin Block
csi scan: INQUIRY successful with code 0x0 scsi 2:0:0:4630896905707208721: scsi scan: peripheral device type of 31, \ no device added Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Fixes: 9cb78c16f5da ("scsi: use 64-bit LUNs") Cc: <sta...@vger.kernel.org> #3.17+ Revi

[PATCH 03/22] zfcp: Remove unneeded linux/miscdevice.h include

2017-07-28 Thread Benjamin Block
interface (keep sysfs files)") commit 1b33ef23946a ("zfcp: remove access control tables interface (port leftovers)")] Signed-off-by: Corentin Labbe <clabbe.montj...@gmail.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com>

[PATCH 13/22] zfcp: more fitting constant for fc_ct_hdr.ct_reason on port scan response

2017-07-28 Thread Benjamin Block
BL and thus also works, here we should use the latter from fc_gs.h. See also its use in libfc's fc_disc_gpn_ft_resp(). Signed-off-by: Steffen Maier <ma...@linux.vnet.ibm.com> Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.

[PATCH 02/22] zfcp: use setup_timer instead of init_timer

2017-07-28 Thread Benjamin Block
From: Lukáš Korenčik <xkore...@fi.muni.cz> Use initialization with setup_timer function instead of using init_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> Signed-off-by: B

[PATCH] MAINTAINERS: Add myself to S390 ZFCP DRIVER as a co-maintainer

2017-07-28 Thread Benjamin Block
I have been working with Steffen on zFCP for quite a while now and we decided adding me as a co-maintainer might be a good thing. Acked-by: Steffen Maier <ma...@linux.vnet.ibm.com> Signed-off-by: Benjamin Block <bbl...@linux.vnet.ibm.com> --- MAINTAINERS | 1 + 1 file changed,

Re: A bug in scsi_alloc_target of drivers/scsi/scsi_scan.c

2017-05-16 Thread Benjamin Block
ed in 12fb8c1574d7d in 2010, see the commit message there. Beste Grüße / Best regards, - Benjamin Block > > diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c > index 81d

Re: [RFC] scsi: generate uevent for SCSI sense code

2017-05-16 Thread Benjamin Block
ot;, > + (sdev->sense_event_filter & > + SCSI_SENSE_EVENT_FILTER_MASK)); > +} > + > +static ssize_t > +sdev_store_sense_event_filter(struct device *dev, > + struct device_attribute *attr, > +

Re: [PATCH v3 3/4] sd: Make synchronize cache upon shutdown asynchronous

2017-04-18 Thread Benjamin Block
Hej Bart, sry for the late'ish reply, had a long weekend. On Thu, Apr 13, 2017 at 12:28:54AM +, Bart Van Assche wrote: > On Wed, 2017-04-12 at 16:41 +0200, Benjamin Block wrote: > > On Mon, Apr 10, 2017 at 10:54:01AM -0700, Bart Van Assche wrote: > > > [ ... ]

Re: [PATCH v4 0/6] Avoid that scsi-mq and dm-mq queue processing stalls sporadically

2017-04-13 Thread Benjamin Block
On Wed, Apr 12, 2017 at 06:11:25PM +, Bart Van Assche wrote: > On Wed, 2017-04-12 at 12:55 +0200, Benjamin Block wrote: > > On Fri, Apr 07, 2017 at 11:16:48AM -0700, Bart Van Assche wrote: > > > The six patches in this patch series fix the queue lockup I reported > >

Re: [PATCH v2 3/4] sd: Make synchronize cache upon shutdown asynchronous

2017-04-12 Thread Benjamin Block
sd_sync_cache(sdkp); > + else > + sd_sync_cache_async(sdkp); That makes the function-documentation obsolete, doesn't it? Beste Grüße / Best regards, - Benjamin Block > } > >

Re: [PATCH v4 0/6] Avoid that scsi-mq and dm-mq queue processing stalls sporadically

2017-04-12 Thread Benjamin Block
ar stuff happening. Beste Grüße / Best regards, - Benjamin Block -- Linux on z Systems Development / IBM Systems & Technology Group IBM Deutschland Research &

Re: [PATCHv3 4/6] scsi_error: do not escalate failed EH command

2017-03-21 Thread Benjamin Block
On Thu, Mar 16, 2017 at 12:53:45PM +0100, Hannes Reinecke wrote: >On 03/16/2017 12:01 PM, Benjamin Block wrote: >> On Wed, Mar 15, 2017 at 02:54:16PM +0100, Hannes Reinecke wrote: >>> On 03/14/2017 06:56 PM, Benjamin Block wrote: >>>> Hello Hannes, >>>&g

Re: [PATCHv3 4/6] scsi_error: do not escalate failed EH command

2017-03-16 Thread Benjamin Block
On Wed, Mar 15, 2017 at 02:54:16PM +0100, Hannes Reinecke wrote: > On 03/14/2017 06:56 PM, Benjamin Block wrote: > > Hello Hannes, > > > > On Wed, Mar 01, 2017 at 10:15:18AM +0100, Hannes Reinecke wrote: > >> When a command is sent as part of the error handling ther

Re: [PATCHv3 6/6] scsi: make asynchronous aborts mandatory

2017-03-15 Thread Benjamin Block
On Wed, Mar 15, 2017 at 02:54:09PM +0100, Hannes Reinecke wrote: > On 03/14/2017 06:33 PM, Benjamin Block wrote: > > Hello Hannes, > > > > On Wed, Mar 01, 2017 at 10:15:20AM +0100, Hannes Reinecke wrote: > >> There hasn't been any reports for HBAs where asynchronous

Re: [PATCHv3 5/6] scsi: make scsi_eh_scmd_add() always succeed

2017-03-14 Thread Benjamin Block
ctively removing the host and adding a new one, plus a new EH thread for it. With this WARN_ON_ONCE we end up in a broken setup w/o any information what exactly broke. Previously we would get at least a SCSI-logging message. Which would also help with analysis of such bugs - correlate data etc

Re: [PATCHv3 4/6] scsi_error: do not escalate failed EH command

2017-03-14 Thread Benjamin Block
he scsi_cmnd-pointer we would access an invalid one. I guess this might as well be true for other LLDs. Beste Grüße / Best regards, - Benjamin Block > > -- > 1.8.5.6 > -- Linux on z Systems Development

Re: [PATCHv3 3/6] scsi: make eh_eflags persistent

2017-03-14 Thread Benjamin Block
_sense_info_fld(const u8 * sense_buffer, > int sb_len, > struct scsi_eh_save { > /* saved state */ > int result; > + int eh_eflags; > enum dma_data_direction data_direction; > unsigned underflow; > unsigned char cmd_len; > -- > 1.8.5.6 &

Re: [PATCHv3 6/6] scsi: make asynchronous aborts mandatory

2017-03-14 Thread Benjamin Block
csi_Host *shost, > struct list_head *work_q, > struct list_head *done_q); > diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h > index 3cd8c3b..afb0481 100644 > --- a/include/scsi/scsi_host.h > +++ b/include/scsi/scsi_ho

Re: [PATCH 21/29] drivers, s390: convert fc_fcp_pkt.ref_cnt from atomic_t to refcount_t

2017-03-06 Thread Benjamin Block
Yes please, I was extremely confused for a moment here. Beste Grüße / Best regards, - Benjamin Block -- Linux on z Systems Development / IBM Systems & Technology Group IBM Deutschland Rese

Re: [PATCHv3 1/6] scsi_error: count medium access timeout only once per EH run

2017-03-02 Thread Benjamin Block
the timeout per EH run, ie the counter will > only be increased once per device and EH run. > > Cc: Ewan Milne <emi...@redhat.com> > Cc: Lawrence Obermann <lober...@redhat.com> > Cc: Benjamin Block <bbl...@linux.vnet.ibm.com> > Cc: Steffen Maier <ma...@de.ibm.c

Re: [PATCH v3 1/2] scsi: Handle Unit Attention when issuing SCSI command

2016-10-25 Thread Benjamin Block
er nibble really only contains 0x70 ((resp & 0x70) == 0x70). I also find it strange that we now have 3 different and independent functions/places that check for valid sense. Beste Grüße / Best regards,

Re: [PATCH] zfcp: Revert to original scanning behaviour

2016-04-12 Thread Benjamin Block
users. > > Benjamin? > Sry, I meant to quickly test this yesterday but got carried away. As far as I understand the patch-series this should be good. Reviewed-by: Benjamin Block <bbl...@linux.vnet.ibm.com>

Re: [PATCHv3] scsi: disable automatic target scan

2016-04-05 Thread Benjamin Block
On 09:29 Fri 01 Apr , Hannes Reinecke wrote: > On 03/30/2016 09:41 PM, Benjamin Block wrote: > > Hello Hannes, > > > > I am a bit late here, but as this got pulled and Steffen didn't have > > time to give it a review, I did today. > > > > On 08:39

Re: [PATCHv3] scsi: disable automatic target scan

2016-03-30 Thread Benjamin Block
f suddenly our users would have to additionally use yet an other config to get the old interfaces working properly. Beste Grüße / Best regards, - Benjamin Block -- Linux on z Systems Developm

Re: Question about expected behavior of terminate_rport_io() in fc_function_template

2015-09-25 Thread Benjamin Block
Hej Hannes, thx for the short explanation. On 23:05 Wed 23 Sep , Hannes Reinecke wrote: > On 09/23/2015 07:06 PM, Benjamin Block wrote: > > Hello, > > > > just a short question. If a low-level driver implements the function > > `terminate_rport_io()` in `

Question about expected behavior of terminate_rport_io() in fc_function_template

2015-09-23 Thread Benjamin Block
on it is not really existing, or I missed it. Beste Grüße / Best regards, - Benjamin Block -- Linux on z Systems Development / IBM Systems & Technology G