Re: [PATCH] Revert "scsi: default to scsi-mq"

2017-08-14 Thread Hannes Reinecke
ts to blk-mq for SCSI. For 4.14 > we'll plan to try again with these fixes. > > This reverts commit 5c279bd9e40624f4ab6e688671026d6005b066fa. > > Signed-off-by: Christoph Hellwig <h...@lst.de>Reviewed-by: Hannes Reinecke > <h...@suse.com> Cheers, Hannes -- Dr. Hanne

Re: [PATCH 3/4] scsi: add Mylex RAID controller

2017-08-09 Thread Hannes Reinecke
On 08/09/2017 04:10 PM, Christoph Hellwig wrote: > On Mon, Aug 07, 2017 at 08:09:11AM +0200, Hannes Reinecke wrote: >> On 08/05/2017 01:39 PM, Christoph Hellwig wrote: >>> Can you use normal linux style for the code instead of copy and >>> pasting the weird nam

Re: [PATCH 0/4] mylex: Replace DAC960 block driver

2017-08-09 Thread Hannes Reinecke
On 08/09/2017 04:23 PM, Christoph Hellwig wrote: > On Wed, Aug 02, 2017 at 04:13:24PM +0200, Hannes Reinecke wrote: >> Hi all, >> >> as we're trying to get rid of the remaining request_fn drivers here's >> a patchset to move the DAC960 driver to the SCSI stack. >>

Re: nvmf question - synchronization between target/initiator regarding partitions

2017-08-07 Thread Hannes Reinecke
rmed on > initiator side (and vice-versa). I confess I couldn't find such sync > idea in NVMe over fabrics spec, though. > Also, reading NVMe spec 1.3, we do have the optional feature > "reservations", but seems it doesn't mention target (only multiple hosts). > See above. Neve

Re: [PATCH 0/5] block: a virtual block device driver for testing

2017-08-07 Thread Hannes Reinecke
roject. I made some changes, all errors are mine. > You > are more than welcomed to test and add new features! > Ah. But then why isn't he mentioned in the From: or Signed-off: lines? Shouldn't he be getting some more credits than just 'William'? (Unless William is in fact an alias for K

Re: [PATCH 3/4] scsi: add Mylex RAID controller

2017-08-07 Thread Hannes Reinecke
n a bit. > THX. Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)

[PATCH 1/4] raid_class: Add 'JBOD' RAID level

2017-08-02 Thread Hannes Reinecke
Not a real RAID level, but some HBAs support JBOD in addition to the 'classical' RAID levels. Signed-off-by: Hannes Reinecke <h...@suse.com> --- drivers/scsi/raid_class.c | 1 + include/linux/raid_class.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/scsi/raid_class.c b/d

[PATCH 0/4] mylex: Replace DAC960 block driver

2017-08-02 Thread Hannes Reinecke
Firmware) and Mylex AcceleRAID 170 (for V2 Firmware). As usual, comments and reviews are welcome. Hannes Reinecke (4): raid_class: Add 'JBOD' RAID level scsi: Add VENDOR_SPECIFIC sense code definitions scsi: add Mylex RAID controller block: Drop obsolete DAC960 driver Documentation

[PATCH 2/4] scsi: Add VENDOR_SPECIFIC sense code definitions

2017-08-02 Thread Hannes Reinecke
Some older devices will return vendor specific sense codes, so we should be adding a definition for it. Signed-off-by: Hannes Reinecke <h...@suse.com> --- include/scsi/scsi_proto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h

Re: device support in hpasa, was: Re: OOPS from cciss_ioctl in 4.12+git

2017-07-07 Thread Hannes Reinecke
for that, he talked about > that back at LSFMM earlier this year. Hannes? > Oh, I do. hpsa is working happily on SLES for _all_ SmartArray controllers. You need to enable 'hpsa_allow_any=1', though. But I'm perfectly happy with making that the default and drop cciss completely. Cheers, Hanne

Re: [PATCH v5 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped

2017-06-21 Thread Hannes Reinecke
unmapped hardware queue. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com>

Re: [PATCH v5 10/12] blk-mq: Document locking assumptions

2017-06-21 Thread Hannes Reinecke
art Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq-sched.c | 2 ++ > block/blk-mq.c

Re: [PATCH v5 09/12] block: Document what queue type each function is intended for

2017-06-21 Thread Hannes Reinecke
ewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-core.c | 33 +++++ > block/blk.h | 2 ++ >

Re: [PATCH v5 08/12] block: Check locking assumptions at runtime

2017-06-21 Thread Hannes Reinecke
gt; Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-core.c

Re: [PATCH v5 06/12] blk-mq: Initialize .rq_flags in blk_mq_rq_ctx_init()

2017-06-21 Thread Hannes Reinecke
ed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq.c | 3 ++- > 1 file chang

Re: [PATCH v5 07/12] block: Add a comment above queue_lockdep_assert_held()

2017-06-21 Thread Hannes Reinecke
ass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > include/linux/blkdev.h | 7 +++ > 1 file changed, 7 insertion

Re: [PATCH v5 04/12] block: Make most scsi_req_init() calls implicit

2017-06-21 Thread Hannes Reinecke
db499b8 ("block: split scsi_request out of struct > request") > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc:

Re: [PATCH v5 03/12] block: Introduce request_queue.initialize_rq_fn()

2017-06-21 Thread Hannes Reinecke
Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > --- > block/blk-core.c | 17 + > include/linux/blk-mq.h | 2 ++ > include/linux/blkdev.h | 4 > 3 files changed, 19 i

Re: [PATCH v5 02/12] block: Make request operation type argument declarations consistent

2017-06-21 Thread Hannes Reinecke
ned int. Also because of > consistency, rename that second argument from 'rw' into 'op'. > This patch does not change any functionality. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke

Re: [PATCH v4 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped

2017-06-20 Thread Hannes Reinecke
unmapped hardware queue. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com>

Re: [PATCH v4 11/12] block: Constify disk_type

2017-06-20 Thread Hannes Reinecke
On 06/20/2017 12:08 AM, Bart Van Assche wrote: > From: Bart Van Assche <bart.vanass...@sandisk.com> > > The variable 'disk_type' is never modified so constify it. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h

Re: [PATCH v4 10/12] blk-mq: Document locking assumptions

2017-06-20 Thread Hannes Reinecke
art Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq-sched.c | 2 ++ > block/blk-

Re: [PATCH v4 09/12] block: Document what queue type each function is intended for

2017-06-20 Thread Hannes Reinecke
ewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-core.c | 33 + > block/blk.h | 2 ++ >

Re: [PATCH v4 08/12] block: Check locking assumptions at runtime

2017-06-20 Thread Hannes Reinecke
gt; Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-core.c

Re: [PATCH v4 07/12] block: Add a comment above queue_lockdep_assert_held()

2017-06-20 Thread Hannes Reinecke
ass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > include/linux/blkdev.h | 7 +++ > 1 file changed, 7 insertion

Re: [PATCH v4 06/12] blk-mq: Initialize .rq_flags in blk_mq_rq_ctx_init()

2017-06-20 Thread Hannes Reinecke
ed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq.c | 2 +- > 1 file change

Re: [PATCH v4 05/12] block: Change argument type of scsi_req_init()

2017-06-20 Thread Hannes Reinecke
...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Reviewed-by: Hannes Reinecke <h...@suse.com> > Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> > --- > block/scsi_ioctl.c| 10 +++--- > drivers/ide/ide-atapi.c

Re: [PATCH v4 04/12] block: Make most scsi_req_init() calls implicit

2017-06-20 Thread Hannes Reinecke
db499b8 ("block: split scsi_request out of struct > request") > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <

Re: [PATCH v4 03/12] block: Introduce request_queue.initialize_rq_fn()

2017-06-20 Thread Hannes Reinecke
ons(+), 2 deletions(-) > Thanks for doing so. I had been missing this functionality for a long time; now I can finally go ahead and convert the dasd driver :-) Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage

Re: [PATCH v4 01/12] blk-mq: Reduce blk_mq_hw_ctx size

2017-06-20 Thread Hannes Reinecke
ng@redhat.com> > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Reviewed-by: Ming Lei <ming@redhat.com> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> >

Re: [PATCH rfc 01/30] nvme: Add admin connect request queue

2017-06-19 Thread Hannes Reinecke
tty massive change which > cannot be added in an incremental fashion). > > Thoughts? I very much prefer this solution, ie rejecting all commands if the queue state is not 'LIVE', and make the 'connect' command the only one being accepted in that state. (Actually, we would need a state

[PATCHv8 2/2] loop: support 4k physical blocksize

2017-06-08 Thread Hannes Reinecke
blocksize. Signed-off-by: Hannes Reinecke <h...@suse.com> --- drivers/block/loop.c | 43 +-- drivers/block/loop.h | 1 + include/uapi/linux/loop.h | 3 +++ 3 files changed, 41 insertions(+), 6 deletions(-) diff --git a/drivers/block/lo

[PATCHv8 1/2] loop: Remove unused 'bdev' argument from loop_set_capacity

2017-06-08 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke <h...@suse.de> Reviewed-by: Christoph Hellwig <h...@lst.de> --- drivers/block/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 28d9329..fc706ad 100644 --- a/drivers/block/

[PATCHv8 0/2] loop: enable different logical blocksizes

2017-06-08 Thread Hannes Reinecke
review from Ming Lei Changes to v7: - Reset logical blocksize on loop_set_fd() Hannes Reinecke (2): loop: Remove unused 'bdev' argument from loop_set_capacity loop: support 4k physical blocksize drivers/block/loop.c | 47 +++ drivers/block/loop.h

Re: [PATCH 6/6] sd: add support for TCG OPAL self encrypting disks

2017-06-06 Thread Hannes Reinecke
through libata. > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- > drivers/scsi/sd.c | 44 > drivers/scsi/sd.h | 2 ++ > 2 files changed, 46 insertions(+) > Reviewed-by: Hannes Reinecke <h...@suse.

Re: [PATCH 5/6] libata: implement SECURITY PROTOCOL IN/OUT

2017-06-06 Thread Hannes Reinecke
s/ata/libata-scsi.c | 76 > +++ > include/linux/ata.h | 1 + > include/linux/libata.h| 1 + > 4 files changed, 110 insertions(+) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH 4/6] libata: factor out a ata_identify_page_supported helper

2017-06-06 Thread Hannes Reinecke
On 06/04/2017 02:42 PM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- > drivers/ata/libata-core.c | 59 > +-- > 1 file changed, 32 insertions(+), 27 deletions(-) > Reviewed-by: Hannes Reinecke

Re: [PATCH 3/6] libata: clarify log page naming / grouping

2017-06-06 Thread Hannes Reinecke
On 06/04/2017 02:42 PM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- > drivers/ata/libata-core.c | 10 +- > include/linux/ata.h | 10 +++--- > 2 files changed, 12 insertions(+), 8 deletions(-) > Reviewed-by: Hannes

Re: [PATCH 2/6] libata: factor out a ata_log_supported helper

2017-06-06 Thread Hannes Reinecke
On 06/04/2017 02:42 PM, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- > drivers/ata/libata-core.c | 59 > +-- > 1 file changed, 16 insertions(+), 43 deletions(-) > Reviewed-by: Hannes Reinecke

Re: [PATCH 1/6] libata: move ata_read_log_page to libata-core.c

2017-06-06 Thread Hannes Reinecke
vers/ata/libata-eh.c | 64 > --- > drivers/ata/libata.h | 4 +-- > 3 files changed, 66 insertions(+), 66 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH v2 5/6] cdrom: Check SCSI passthrough support before reading audio

2017-05-31 Thread Hannes Reinecke
gt; > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: linux-block@vger.kernel.org > --- > drivers/cdrom/cdrom.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --gi

Re: [PATCH v2 4/4] blk-mq-debugfs: Add 'kick' operation

2017-05-31 Thread Hannes Reinecke
@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq-debugfs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [PATCH v2 3/4] blk-mq-debugfs: Show busy requests

2017-05-31 Thread Hannes Reinecke
.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq-debugfs.c | 26 ++++++ > 1 file changed, 26 in

Re: [PATCH 4/5] blk-mq-debugfs: Show busy requests

2017-05-26 Thread Hannes Reinecke
.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq-debugfs.c | 25 + > 1 file changed, 25 ins

Re: [PATCH 3/5] blk-mq-debugfs: Show requeue list

2017-05-25 Thread Hannes Reinecke
; > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq-debugfs.c | 32

Re: [PATCH 2/5] blk-mq-debugfs: Show atomic request flags

2017-05-25 Thread Hannes Reinecke
Cc: Omar Sandoval <osan...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Ming Lei <ming@redhat.com> > --- > block/blk-mq-debugfs.c | 10 ++++++ > 1 file changed, 10 insertions(+) > Reviewed-by: Han

Re: [PATCH 1/5] blk-mq: Only register debugfs attributes for blk-mq queues

2017-05-25 Thread Hannes Reinecke
mq: untangle debugfs and sysfs") > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Ming Lei <ming@redhat.com> >

Re: [PATCH 31/31] xen/scsifront: Remove code that zeroes driver-private command data

2017-05-24 Thread Hannes Reinecke
/scsi/xen-scsifront.c > @@ -534,7 +534,6 @@ static int scsifront_queuecommand(struct Scsi_Host *shost, > int err; > > sc->result = 0; > - memset(shadow, 0, sizeof(*shadow)); > > shadow->sc = sc; > shadow->act = VSCSIIF_ACT_SCSI_CDB; &

Re: [PATCH 29/31] scsi: snic: Remove code that zeroes driver-private command data

2017-05-24 Thread Hannes Reinecke
ar Baddela <sebad...@cisco.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > --- > drivers/scsi/snic/snic_scsi.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/scsi/snic/snic_scsi.c b/drivers/scsi/snic/snic_

Re: [PATCH 27/31] scsi: Consolidate more initialization code

2017-05-24 Thread Hannes Reinecke
only assigns a tag to a request after > a request has been started. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > --- > drivers/scsi/scsi_error.c | 1

Re: [PATCH 28/31] scsi_setup_fs_cmnd(): Call scsi_req_init() instead of open-coding it

2017-05-24 Thread Hannes Reinecke
On 05/24/2017 02:34 AM, Bart Van Assche wrote: > The only functional change is that this patch causes scsi_setup_fs_cmnd() > to clear scsi_request.sense_len. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de&g

Re: [PATCH 25/31] scsi-mq: Make behavior scsi_mq_prep_fn() closer to that of scsi_prep_fn()

2017-05-24 Thread Hannes Reinecke
if a request is requeued. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > --- > drivers/scsi/scsi_lib.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-)

Re: [PATCH 24/31] scsi: Make scsi_initialize_rq() zero the entire struct scsi_cmnd

2017-05-24 Thread Hannes Reinecke
ig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > --- > drivers/scsi/scsi_lib.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index 10c6adb208dc..4b24c45fa113 100644 > ---

Re: [PATCH 23/31] scsi: Move sense buffer pointer initialization into scsi_initialize_rq()

2017-05-24 Thread Hannes Reinecke
ed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > --- > drivers/scsi/scsi_lib.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH 22/31] scsi: Inline scsi_init_command()

2017-05-24 Thread Hannes Reinecke
rep callback functions and not from > scsi_ioctl_reset(). > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > --- > drivers/scsi/scsi_error.c | 1 - > dri

Re: [PATCH 21/31] scsi: Move most of scsi_init_command() into scsi_initialize_rq()

2017-05-24 Thread Hannes Reinecke
ss...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.de> > --- > drivers/scsi/scsi_lib.c | 17 ----- > 1 file changed, 8 insertions(+), 9 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Chee

Re: [PATCH 20/31] scsi: Only add commands to the device command list if required by the LLD

2017-05-24 Thread Hannes Reinecke
ueue command initialization code. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > --- > drivers/scsi/scsi.c

Re: [PATCH 19/31] scsi: Change argument type of scsi_req_init()

2017-05-24 Thread Hannes Reinecke
On 05/24/2017 02:34 AM, Bart Van Assche wrote: > Since scsi_req_init() works on a struct scsi_request, change the > argument type into struct scsi_request *. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Christoph Hellwig <h...@lst.de&g

Re: [PATCH 18/31] block: Make scsi_req_init() calls implicit

2017-05-24 Thread Hannes Reinecke
t;ax...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > Cc: linux-block@vger.kernel.org > --- > block/bsg.c| 1 - > block/scsi_ioctl.c |

Re: [PATCH 17/31] block: Introduce request_queue.initialize_rq_fn()

2017-05-24 Thread Hannes Reinecke
be repeated after every > blk_get_request() call by adding a new callback function to struct > request_queue. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Jens Axboe <ax...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Omar

Re: [PATCH 13/31] pktcdvd: Check queue type before attaching to a queue

2017-05-24 Thread Hannes Reinecke
the private data. > > References: commit 82ed4db499b8 ("block: split scsi_request out of struct > request") > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Jens Axboe <ax...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> >

Re: [PATCH 15/31] nfsd: Check private request size before submitting a SCSI request

2017-05-24 Thread Hannes Reinecke
boe <ax...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > Cc: linux-...@vger.kernel.org > Cc: linux-block@vger.kernel.org > --- > fs/nfsd/blocklayout.c | 3 +++ > 1 file

Re: [PATCH 14/31] cdrom: Check private request size before attaching to a queue

2017-05-24 Thread Hannes Reinecke
ommit 82ed4db499b8 ("block: split scsi_request out of struct > request") > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Jens Axboe <ax...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Omar Sandoval <osan...@fb.com> >

Re: [PATCH 11/31] block: Introduce queue flag QUEUE_FLAG_SCSI_SUP

2017-05-24 Thread Hannes Reinecke
uce the flag QUEUE_FLAG_SCSI_SUP. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Jens Axboe <ax...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > --- >

Re: [PATCH 10/31] Avoid that scsi_exit_rq() triggers a use-after-free

2017-05-23 Thread Hannes Reinecke
Fixes: e9c787e65c0c ("scsi: allocate scsi_cmnd structures as part of struct > request") > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Scott Bauer <scott.ba...@intel.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Jan Kara <

Re: [PATCH 09/31] block: Avoid that blk_exit_rl() triggers a use-after-free

2017-05-23 Thread Hannes Reinecke
t; Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Jens Axboe <ax...@fb.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Tejun Heo <t...@kernel.org> > Cc: Jan Kara <j...@suse.cz> > Cc: Hannes Reinecke <h...@suse.com> > Cc: <

Re: [PATCH 08/31] sd, sr: Convert two assignments into warning statements

2017-05-23 Thread Hannes Reinecke
. Hence convert these > two assignment statements into warning statements. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Johannes Thumshirn <jthumsh...@suse

Re: [PATCH 05/31] Make __scsi_remove_device go straight from BLOCKED to DEL

2017-05-23 Thread Hannes Reinecke
hin <isra...@mellanox.com> > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: James Bottomley <james.bottom...@hansenpartnership.com> > Cc: Israel Rukshin <isra...@mellanox.com> > Cc: Max Gurtovoy <m...@mellanox.com> > Cc: Hannes

Re: [PATCH 04/31] Introduce scsi_start_queue()

2017-05-23 Thread Hannes Reinecke
On 05/24/2017 02:33 AM, Bart Van Assche wrote: > This patch does not change any functionality. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Israel Rukshin <isra...@mellanox.com> > Cc: Max Gurtovoy <m...@mellanox.com> > Cc: Hannes Re

Re: [PATCH 03/31] Protect SCSI device state changes with a mutex

2017-05-23 Thread Hannes Reinecke
igned-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Johannes Thumshirn <jthumsh...@suse.de> > --- > drivers/scsi/scsi_error.c | 8 +++- > drivers/scsi/scsi

Re: [PATCH 02/31] Create two versions of scsi_internal_device_unblock()

2017-05-23 Thread Hannes Reinecke
On 05/24/2017 02:33 AM, Bart Van Assche wrote: > This will make it easier to serialize SCSI device state changes > through a mutex. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@s

Re: [PATCH 01/31] Split scsi_internal_device_block()

2017-05-23 Thread Hannes Reinecke
h a mutex. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: Hannes Reinecke <h...@suse.com> > Cc: Johannes Thumshirn <jthumsh...@suse.de> > Cc: Sreekanth Reddy <sreekanth.re...@broadcom.com>

[PATCH] scsi: sanity check for timeout in sg_io()

2017-05-10 Thread Hannes Reinecke
long for most applications. Signed-off-by: Hannes Reinecke <h...@suse.com> --- block/scsi_ioctl.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index 4a294a5..53b95ea 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@

Re: [PATCH v2 10/12] blk-mq-debugfs: allow schedulers to register debugfs attributes

2017-05-04 Thread Hannes Reinecke
| 24 ++-- > include/linux/blk-mq.h | 1 + > include/linux/blkdev.h | 1 + > include/linux/elevator.h | 7 + > 6 files changed, 124 insertions(+), 17 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. H

Re: [PATCH v2 09/12] blk-mq: untangle debugfs and sysfs

2017-05-04 Thread Hannes Reinecke
ot sure if that's a real issue, but personally I liked the mapping. 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 v2 08/12] blk-mq: move debugfs declarations to a separate header file

2017-05-04 Thread Hannes Reinecke
1 + > block/blk-mq-debugfs.h | 29 + > block/blk-mq-sysfs.c | 1 + > block/blk-mq.h | 28 > block/blk-sysfs.c | 1 + > 6 files changed, 33 insertions(+), 28 deletions(-) > create mode 100644 block/blk-mq-debugfs.h &

Re: [PATCH v2 06/12] blk-mq-debugfs: get rid of a bunch of boilerplate

2017-05-04 Thread Hannes Reinecke
> > --- > block/blk-mq-debugfs.c | 464 > +++-- > 1 file changed, 136 insertions(+), 328 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de

Re: [PATCH v2 05/12] blk-mq-debugfs: rename hw queue directories from to hctx

2017-05-04 Thread Hannes Reinecke
->queue_num); > + snprintf(name, sizeof(name), "hctx%u", hctx->queue_num); > hctx_dir = debugfs_create_dir(name, q->mq_debugfs_dir); > if (!hctx_dir) > return -ENOMEM; > Hmm. The number actually corresponds to /sys/block/XX/mq/ With thi

Re: [PATCH v2 04/12] blk-mq-debugfs: don't open code strstrip()

2017-05-04 Thread Hannes Reinecke
hanged, 4 insertions(+), 5 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F.

Re: [PATCH v2 02/12] blk-mq-debugfs: clean up flag definitions

2017-05-04 Thread Hannes Reinecke
off-by: Omar Sandoval <osan...@fb.com> > --- > block/blk-mq-debugfs.c | 201 > ++--- > 1 file changed, 108 insertions(+), 93 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH v2 01/12] blk-mq-debugfs: separate flags with |

2017-05-04 Thread Hannes Reinecke
On 05/04/2017 09:31 AM, Omar Sandoval wrote: > From: Omar Sandoval <osan...@fb.com> > > This reads more naturally than spaces. > > Signed-off-by: Omar Sandoval <osan...@fb.com> > --- > block/blk-mq-debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH 7/7] Revert "mtip32xx: pass BLK_MQ_F_NO_SCHED"

2017-05-02 Thread Hannes Reinecke
> dd->tags.driver_data = dd; > dd->tags.timeout = MTIP_NCQ_CMD_TIMEOUT_MS; > > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49

Re: [PATCH 6/7] blk-mq-sched: remove hack that bypasses scheduler for reserved requests

2017-05-02 Thread Hannes Reinecke
we might > - * have driver dependencies on the value of the internal tag. > - */ > - if (e && !(data->flags & BLK_MQ_REQ_RESERVED)) { > + if (e) { > data->flags |= BLK_MQ_REQ_INTERNAL; > > /* > Reviewed-by: Hannes Rei

Re: [PATCH 5/7] mtip32xx: convert internal command issue to block IO path

2017-05-02 Thread Hannes Reinecke
-- > 1 file changed, 76 insertions(+), 30 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes ReineckeTeamlead Storage & Networking h...@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5

Re: [PATCH v6 10/10] scsi: Implement blk_mq_ops.show_rq()

2017-04-27 Thread Hannes Reinecke
acle.com> > Cc: James Bottomley <james.bottom...@hansenpartnership.com> > Cc: Hannes Reinecke <h...@suse.com> > Cc: <linux-s...@vger.kernel.org> > --- > drivers/scsi/Makefile | 1 + > drivers/scsi/scsi_debugfs.c | 13 + > drivers/scsi/scsi_debugfs

Re: [PATCH v6 09/10] blk-mq: Add blk_mq_ops.show_rq()

2017-04-27 Thread Hannes Reinecke
On 04/26/2017 10:47 PM, Bart Van Assche wrote: > This new callback function will be used in the next patch to show > more information about SCSI requests. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Omar Sandoval <osan...@fb.com&g

Re: [PATCH v4 09/10] blk-mq: Add blk_mq_ops.show_rq()

2017-04-25 Thread Hannes Reinecke
On 04/24/2017 11:51 PM, Bart Van Assche wrote: > On Mon, 2017-04-24 at 09:32 +0200, Hannes Reinecke wrote: >> On 04/22/2017 01:40 AM, Bart Van Assche wrote: >>> --- a/include/linux/blk-mq.h >>> +++ b/include/linux/blk-mq.h >>> @@ -121,6 +121,12 @@ struct

Re: [PATCH v4 10/10] scsi: Implement blk_mq_ops.show_rq()

2017-04-24 Thread Hannes Reinecke
rtin.peter...@oracle.com> > Cc: James Bottomley <james.bottom...@hansenpartnership.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > Cc: <linux-s...@vger.kernel.org> > --- > drivers/scsi/scsi_lib.c | 11 +++ > 1 fi

Re: [PATCH v4 09/10] blk-mq: Add blk_mq_ops.show_rq()

2017-04-24 Thread Hannes Reinecke
On 04/22/2017 01:40 AM, Bart Van Assche wrote: > This new callback function will be used in the next patch to show > more information about SCSI requests. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Omar Sandoval <osan...@fb.com&g

Re: [PATCH v4 07/10] blk-mq: Make blk_flags_show() callers append a newline character

2017-04-24 Thread Hannes Reinecke
-by: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > --- > block/blk-mq-debugfs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hannes Reinecke

Re: [PATCH v4 06/10] blk-mq: Move the "state" debugfs attribute one level down

2017-04-24 Thread Hannes Reinecke
On 04/22/2017 01:40 AM, Bart Van Assche wrote: > Move the "state" attribute from the top level to the "mq" directory > as requested by Omar. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Reviewed-by: Omar Sandoval <osan...@

Re: [PATCH v4 05/10] blk-mq: Unregister debugfs attributes earlier

2017-04-24 Thread Hannes Reinecke
aches the "dead" state. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > --- > block/blk-core.c | 5 + > 1 file changed, 5 insertions(+) > Reviewed-by

Re: [PATCH v4 04/10] blk-mq: Check blk_mq_debugfs_register() return value

2017-04-24 Thread Hannes Reinecke
Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > --- > block/blk-mq-sysfs.c | 23 +-- > 1 file changed, 17 insertions(+), 6 deletions(-) > Reviewed-by: Hannes Reinecke <h...@suse.com> Cheers, Hannes -- Dr. Hanne

Re: [PATCH v4 03/10] blk-mq-debugfs: Rename functions for registering and unregistering the mq directory

2017-04-24 Thread Hannes Reinecke
s...@sandisk.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > --- > block/blk-mq-debugfs.c | 8 > block/blk-mq-sysfs.c | 6 +++--- > block/blk-mq.h | 8 > 3 files changed, 11 insertions(+), 11 dele

Re: [PATCH v4 02/10] blk-mq: Let blk_mq_debugfs_register() look up the queue name

2017-04-24 Thread Hannes Reinecke
up the queue name. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h...@suse.com> > --- > block/blk-mq-debugfs.c | 5 +++-- > block/blk-mq-sysfs.c | 2 +- > block/blk-mq.h

Re: [PATCH v4 01/10] blk-mq: Register /queue/mq after having registered /queue

2017-04-24 Thread Hannes Reinecke
alled. To avoid lock inversion, > protect sysfs / debugfs registration with the queue sysfs_lock > instead of the global mutex all_q_mutex. > > Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com> > Cc: Omar Sandoval <osan...@fb.com> > Cc: Hannes Reinecke <h

Re: [PATCH 00/10] dm: zoned block device support

2017-04-24 Thread Hannes Reinecke
vers/md/dm-zoned-io.c > create mode 100644 drivers/md/dm-zoned-metadata.c > create mode 100644 drivers/md/dm-zoned-reclaim.c > create mode 100644 drivers/md/dm-zoned.h > Very nice. You can add my Reviewed-by: Hannes Reinecke <h...@suse.com> to the whole series. Cheers, Hann

Re: [PATCH] remove the mg_disk driver

2017-04-12 Thread Hannes Reinecke
>> include/linux/mg_disk.h | 45 -- >> 5 files changed, 1257 deletions(-) >> delete mode 100644 Documentation/blockdev/mflash.txt >> delete mode 100644 drivers/block/mg_disk.c >> delete mode 100644 include/linux/mg_disk.h

[PATCHv7 2/2] loop: support 4k physical blocksize

2017-04-07 Thread Hannes Reinecke
blocksize. Signed-off-by: Hannes Reinecke <h...@suse.com> --- drivers/block/loop.c | 40 +++- drivers/block/loop.h | 1 + include/uapi/linux/loop.h | 3 +++ 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/drivers/block/lo

[PATCHv7 1/2] loop: Remove unused 'bdev' argument from loop_set_capacity

2017-04-07 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke <h...@suse.de> Reviewed-by: Christoph Hellwig <h...@lst.de> Reviewed-by: Ming Lei <ming@redhat.com> --- drivers/block/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/lo

<    1   2   3   4   5   6   >