Re: [PATCH 1/1] Drivers: scsi: storvsc: Add blist flags

2014-07-23 Thread Christoph Hellwig
On Wed, Jul 23, 2014 at 01:54:43PM +0100, Sitsofe Wheeler wrote: That's good to know (I was worried the device would not be detected as supporting discard because it doesn't report lbpme and doesn't declare a conformance version (see below)). Ok, that makes things worse - you might be able to

Re: [PATCH 1/1] Drivers: scsi: storvsc: Add blist flags

2014-07-23 Thread Christoph Hellwig
On Wed, Jul 23, 2014 at 03:10:28PM +0100, Sitsofe Wheeler wrote: I'm not sure this alone will work - won't sdev_bflags/bflags have already been built at this point? They've been built up, but we can still or new values into it. It looks fine to me from review, but if you can test it on an

Re: [Bug 79901] Extremely slow boot on Promise VTrak E610f due to sd_mod RSOC usage

2014-07-24 Thread Christoph Hellwig
Thanks, this one looks good to me. Can someone else give me a second review on the attached patch so I can merged it? --- From 95bc83fa0d6e9a6152cd6fce79ff87c0994e83ed Mon Sep 17 00:00:00 2001 From: Janusz Dziemidowicz rrapt...@nails.eu.org Date: Thu, 24 Jul 2014 15:48:46 +0200 Subject: [PATCH]

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Christoph Hellwig
On Thu, Jul 24, 2014 at 09:54:24AM -0400, Martin K. Petersen wrote: I'm very much against short-circuiting the LBP logic in a passthrough driver because then we might end up in the exact situation we were trying to avoid with this patch series. Namely sending down commands unsupported by the

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Christoph Hellwig
On Thu, Jul 24, 2014 at 08:34:19AM -0700, Christoph Hellwig wrote: I agree - I'd like to pull in KY's simple fix as soon as I get a second review for it. Ok, looks like I just got that from Hannes. Let's see if there's more to be done for the pass through case, but I'd rather wait for the next

Re: [PATCH 07/14] scsi: convert host_busy to atomic_t

2014-07-25 Thread Christoph Hellwig
On Tue, Jul 22, 2014 at 12:18:19AM -0400, Martin K. Petersen wrote: More nitpicking. In the two previous atomic conversion patches you kept %hu for the atomic_t. Here it's %d. I'll fix it to use %d everywhere, given that's it's not an unsigned short anymore. -- To unsubscribe from this list:

[ANNOUNCE] scsi patch queue tree updated

2014-07-25 Thread Christoph Hellwig
I've pushed out new version of the for-3.17 core and drivers trees: git://git.infradead.org/users/hch/scsi-queue.git core-for-3.17 git://git.infradead.org/users/hch/scsi-queue.git drivers-for-3.17 In the core tree the biggest update is the merge of the blk-mq support, but various smaller

Re: [PATCH] [SCSI] Make scsi_transfer_length take a scsi_data_buffer argument

2014-07-25 Thread Christoph Hellwig
choose which I/O direction the calculation should apply to. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com Thanks, this looks good to me, Reviewed-by: Christoph Hellwig h...@lst.de -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message

Re: [PATCH V2 3/4] Introduce XEN scsiback module

2014-07-26 Thread Christoph Hellwig
Just a quick glance: a) this should move to drivers/target with the other target code b) you're still having your own CDB emulation in there, the target code should be taking care of all that. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message

Re: [PATCH 02/14] block: Replace bi_integrity with bi_special

2014-07-26 Thread Christoph Hellwig
Not sure what this buys us until other uses show up, but it looks fine to me: Reviewed-by: Christoph Hellwig h...@lst.de -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 05/14] block: Deprecate the use of the term sector in the context of block integrity

2014-07-26 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig h...@lst.de -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 06/14] block: Make protection interval calculation generic

2014-07-26 Thread Christoph Hellwig
On Fri, Jul 25, 2014 at 04:34:21PM -0400, Martin K. Petersen wrote: + return sectors (ilog2(bi-interval) - 9); I was going to say this should be 'SECTOR_SHIFT', but that constant or variants of it are only defined locally in various subsystems.. Looks good, Reviewed-by: Christoph Hellwig

Re: [RFC] hpsa: work in progress lockless monster patches

2014-07-26 Thread Christoph Hellwig
Christoph Hellwig (1): reserve block tags in scsi host So you found this one useful. This begs the question how we should move forward with it, as it will only work with the blk-mq path in it's current form. I can see three ways: - we implement equivalent functionality in the old block

Re: [PATCH] scsi: break from queue depth adjusting loops when device found

2014-07-26 Thread Christoph Hellwig
I just saw this patch showing up again in the hpsa series, so let's get the discussiong going on how to proceed again: I think we can't simply apply the current version as it breaks the intended semantics in the FC drivers that expect an array with target-wide ressources. So if we want to go

Re: [PATCH] scsi: break from queue depth adjusting loops when device found

2014-07-26 Thread Christoph Hellwig
On Sat, Jul 26, 2014 at 11:14:35AM -0500, Stephen Cameron wrote: Hmm, I forgot that that patch was in there, I wasn't trying to keep pushing it along. From the previous discussion, I got the impression I was simply wrong, and that this patch wasn't needed, so I had meant to drop it, I just

Re: WARNING: CPU: 1 PID: 495 at mm/slab_common.c:69 kmem_cache_create+0x1a9/0x330()

2014-07-26 Thread Christoph Hellwig
Here's a formal one. James, can I get your signoff for it? Vladimir, can I get a reviewed-by from you (or anyone else)? --- From 73b1034ab1418e2dea75ccf642bc85c728b57313 Mon Sep 17 00:00:00 2001 From: James Bottomley james.bottom...@hansenpartnership.com Date: Sat, 26 Jul 2014 12:21:26 -0400

Re: Block/SCSI data integrity update v2

2014-07-26 Thread Christoph Hellwig
I haven't done an in-depth review of the whole series, but it looks generally good to me. How should we pull it in? Normally block stuff should go through Jens, but the sd changes won't apply without the various patches in the scsi tree. -- To unsubscribe from this list: send the line

Re: [PATCH] eata: remove driver_lock

2014-07-26 Thread Christoph Hellwig
Can I get a quick review for this one? On Mon, Jul 14, 2014 at 10:26:33AM +0200, Christoph Hellwig wrote: port_detect is only called from the module_init routine and thus implicitly serialized, so remove the driver lock which was held over potentially sleeping function calls. Signed-off

Re: [PATCH v2 1/3] scsi_cmnd: Introduce scsi_transfer_length helper

2014-07-27 Thread Christoph Hellwig
On Sun, Jul 27, 2014 at 12:11:11PM +0300, Boaz Harrosh wrote: If you have a tree that you want me to test I will be glad too. From this thread I'm confused as to what patches you want me to test? please point me to a tree you need testing. You can bug me any time, any tree. I will be happy to

Re: WARNING: CPU: 1 PID: 495 at mm/slab_common.c:69 kmem_cache_create+0x1a9/0x330()

2014-07-29 Thread Christoph Hellwig
On Mon, Jul 28, 2014 at 11:49:22AM +0400, James Bottomley wrote: That needs to be From: James Bottomley jbottom...@parallels.com As well. I do list handling on hansenpartnership.com to minimise exchange wreckage on mailinglists, but I should acknowledge Parallels as supporting the work I

Re: [Xen-devel] [PATCH V2 3/4] Introduce XEN scsiback module

2014-07-29 Thread Christoph Hellwig
On Mon, Jul 28, 2014 at 05:35:34AM +0200, J?rgen Gro? wrote: On 07/26/2014 05:23 PM, Christoph Hellwig wrote: Just a quick glance: a) this should move to drivers/target with the other target code I don't mind. I just followed the example of drivers/vhost/vhost.c and thought the similar

Re: Block/SCSI data integrity update v2

2014-07-29 Thread Christoph Hellwig
Sami, can you review the remaining patches in the series so that it's ready to be included in the scsi tree once Jens decides he is fine with that? Thanks, Christoph -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to

Re: [PATCH v2 RESEND 00/23] scsi: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-07-29 Thread Christoph Hellwig
On Thu, Jul 17, 2014 at 01:28:20PM -0700, Christoph Hellwig wrote: Can I get reviews for the patches still missing one, maybe from the Distro folks? I'd like to pull in the whole things in favor of cherry picking the reviewed patches. I've applied those few patches that did get a review

[PATCH] Do not issue SCSI RSOC command to Promise Vtrak E610f sd_mod RSOC usage

2014-07-29 Thread Christoph Hellwig
ping? ?I'd really like to get a review on this one and merge it for 3.17 On Thu, Jul 24, 2014 at 08:28:38AM -0700, Christoph Hellwig wrote: Thanks, this one looks good to me. Can someone else give me a second review on the attached patch so I can merged it? --- From

Re: [PATCHv3 0/8] target: Save memory on unused se_dev_entrys and se_luns

2014-07-29 Thread Christoph Hellwig
Nic, any progress on looking over these? Seems like there's actually nothing at all queued up for 3.17 in the target tree, or am І missing something? -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH v2 RESEND 17/23] pm8001: Fix invalid return when request_irq() failed

2014-07-29 Thread Christoph Hellwig
On Tue, Jul 29, 2014 at 03:13:06PM +0200, Tomas Henzl wrote: Hi, patch looks good. A correction in pm8001_request_irq might be added too to allow the INT-X path when pm8001_setup_msix fails, but that is not part of this fix. There's actually an equivalent fix already in through one of

Re: [PATCH] [SCSI] Make scsi_transfer_length take a scsi_data_buffer argument

2014-07-29 Thread Christoph Hellwig
Can I get another review for this one? Sami? On Fri, Jul 25, 2014 at 02:19:27PM -0700, Christoph Hellwig wrote: On Fri, Jul 25, 2014 at 04:00:19PM -0400, Martin K. Petersen wrote: For bidirectional commands we need to be able to distinguish between the in and out scsi_data_buffers when

Re: [PATCH V2 2/4] Introduce xen-scsifront module

2014-07-29 Thread Christoph Hellwig
+ * Patched to support 2TB drives + * 2010, Samuel Kvasnica, IMS Nanofabrication AG + */ This doesn't really belong into the top of the file comment and should be moved to the patch description. + +#include linux/version.h not needed. +static int get_id_from_freelist(struct

Re: [PATCH v2 RESEND 17/23] pm8001: Fix invalid return when request_irq() failed

2014-07-29 Thread Christoph Hellwig
On Tue, Jul 29, 2014 at 04:15:45PM +0200, Alexander Gordeev wrote: Hmm.. 18/23 applies with a minor fuzz against git://git.infradead.org/users/hch/scsi-queue.git drivers-for-3.17 Okay, it was just git-am being goofy then. I'll take care of it. -- To unsubscribe from this list: send the line

Re: [PATCH 3/4] libata-scsi: Update SATL for ZAC drives

2014-07-29 Thread Christoph Hellwig
On Tue, Jul 29, 2014 at 04:45:16PM +0200, Hannes Reinecke wrote: ZAC (zoned-access command) drives translate into ZBC (Zoned block command) device type for SCSI. So implement the correct mappings into libata-scsi and update the SCSI command set versions. This seems to both set the periphal

Re: [PATCH 4/4] sd: Optionally attach to ZBC devices

2014-07-29 Thread Christoph Hellwig
On Tue, Jul 29, 2014 at 04:45:17PM +0200, Hannes Reinecke wrote: ZBC drives are close to disk devices, so sd.c is well suited as a testbed for ZBC devices. This patch introduces a module option 'attach_zbc' to sd which will make the sd driver accept ZBC devices as normal disk drives.

Re: [Bug 79901] [BISECTED]Extremely slow boot on Promise VTrak E610f due to sd_mod RSOC usage

2014-07-29 Thread Christoph Hellwig
On Tue, Jul 29, 2014 at 07:07:51PM +, bugzilla-dae...@bugzilla.kernel.org wrote: https://bugzilla.kernel.org/show_bug.cgi?id=79901 --- Comment #3 from Janusz Dziemidowicz rrapt...@nails.eu.org --- I've read that document before creating the patch. Now, I've read it again. I must say I'm

Re: [PATCH 4/4] sd: Optionally attach to ZBC devices

2014-07-30 Thread Christoph Hellwig
On Wed, Jul 30, 2014 at 08:41:55AM +0200, Hannes Reinecke wrote: Yes, eventually. But can't we defer that to a next patchset? I'd really like to have this one in, as it makes dealing with ZAC devices _so much_ easier ... I'm happy to put the sd patch in if I can get another review for it. But

Re: [PATCH 0/4] iscsi: iscsi changes for 3.17

2014-07-30 Thread Christoph Hellwig
Can I get reviews for the remaining patches, please? On Sat, Jul 12, 2014 at 03:51:47PM -0500, micha...@cs.wisc.edu wrote: The following patches were made over Chrisoph's scsi-queue drivers-for-3.17 branch. They are some fixes to the get_host_stats code and new error code for when a iscsi ping

Re: WARNING: CPU: 1 PID: 495 at mm/slab_common.c:69 kmem_cache_create+0x1a9/0x330()

2014-07-30 Thread Christoph Hellwig
On Wed, Jul 30, 2014 at 08:21:35AM -0400, Josh Boyer wrote: Thanks, I've update the author, added a Cc to ћtable and pushed it out to the core-for-3.17 branch. This fixes a bug in the 3.16 kernel. Why wouldn't it be sent to Linus for inclusion in the final release there? I'm only

Re: WARNING: CPU: 1 PID: 495 at mm/slab_common.c:69 kmem_cache_create+0x1a9/0x330()

2014-07-30 Thread Christoph Hellwig
On Wed, Jul 30, 2014 at 12:22:11PM -0500, Mike Christie wrote: Some drivers like qla2xxx do not set proc_name. I think if 2 drivers like that are loaded then you will hit some other warns/bugs in the kmem cache setup code right? Drivers have to opt into using their own caches by setting

Re: [PATCH -next] scsi: fix u14-34f printk format warnings

2014-07-31 Thread Christoph Hellwig
Thanks, Randy. I'll merge it. I usually want a second review for scsi patches, but I guess this one is trivial enough to waive that requirement. That being said is anyone still using the u14-34f driver? From looking at the commit history it doesn't really look either maintained or used.. --

Re: [PATCH] eata: remove driver_lock

2014-07-31 Thread Christoph Hellwig
Can I also get a second review? On Sat, Jul 26, 2014 at 09:25:59AM -0700, Christoph Hellwig wrote: Can I get a quick review for this one? On Mon, Jul 14, 2014 at 10:26:33AM +0200, Christoph Hellwig wrote: port_detect is only called from the module_init routine and thus implicitly

Re: [PATCH] Save command pool address of Scsi_Host

2014-08-01 Thread Christoph Hellwig
On Fri, Aug 01, 2014 at 08:27:05AM +0200, jgr...@suse.com wrote: From: Juergen Gross jgr...@suse.com If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool()

Re: [Xen-devel] [PATCH V2 2/4] Introduce xen-scsifront module

2014-08-01 Thread Christoph Hellwig
On Wed, Jul 30, 2014 at 06:53:59AM +0200, Juergen Gross wrote: Hmm, I looked into scsi_add_device(). It seems as if the caller can't distinguish between a new created and an already existing device. Am I missing something? That's right. If you need that I still think it's better to add a

Re: [ANNOUNCE] scsi patch queue tree updated

2014-08-01 Thread Christoph Hellwig
I've pushed out updates to both the core-for-3.17 and drivers-for-3.17 branches. I think we're in a good shape for the merge window, but I'd still like to get reviewers attention for a few driver updates that I'd love to get in still: - my eata patch to remove the driver_lock - the partially

Re: [PATCH v1.3 6/18] arcmsr: precise checking adapter ID

2014-08-01 Thread Christoph Hellwig
-static void arcmsr_define_adapter_type(struct AdapterControlBlock *acb) +static bool arcmsr_define_adapter_type(struct AdapterControlBlock *acb) { struct pci_dev *pdev = acb-pdev; u16 dev_id; + pci_read_config_word(pdev, PCI_DEVICE_ID, dev_id); acb-dev_id =

Re: [PATCH v1.3 4/18] arcmsr: limit max. number of SCSI command request

2014-08-01 Thread Christoph Hellwig
@@ -2220,8 +2220,7 @@ static int arcmsr_queue_command_lck(stru arcmsr_handle_virtual_command(acb, cmd); return 0; } - if (atomic_read(acb-ccboutstandingcount) = - ARCMSR_MAX_OUTSTANDING_CMD) + if

Re: [scsi/net-next] Pulling in net-next changes

2014-08-01 Thread Christoph Hellwig
Hi Anish, Linus plans to do the 3.16 release this weekend, so unless you have really urgent fixes that require changes from the scsi and net tree I'd rather avoid the whole issue but waiting for the next merge window. Can you wait another week or two for these updates? -- To unsubscribe from

Re: [Xen-devel] [PATCH V2 2/4] Introduce xen-scsifront module

2014-08-01 Thread Christoph Hellwig
On Fri, Aug 01, 2014 at 03:06:04PM +0200, Juergen Gross wrote: That's right. If you need that I still think it's better to add a variant of scsi_add_device helping you with that. I'm open to that solution. Do you have preferences how to do it (IOW: can you give me a hint)? I thought

Re: [PATCH] scsi: use correct formats in printk()

2014-08-04 Thread Christoph Hellwig
On Mon, Aug 04, 2014 at 10:48:37AM +0200, Martin Kepplinger wrote: Use %llu for u64 and %u for int. Not the other way round. I've already queued up an equivalent fix in my core-for-3.17 branch, I just need James to pull it into the scsi for-next tree. -- To unsubscribe from this list: send the

Re: [PATCH] Save command pool address of Scsi_Host

2014-08-04 Thread Christoph Hellwig
On Mon, Aug 04, 2014 at 06:22:59AM +0200, Juergen Gross wrote: OTOH it would be possible to just delete .cmd_pool in the template when deleting the pool. I'll send a patch doing this and you can decide whether to take it or to use the other solution. I'm not sure which to prefer: the

Re: [PATCH] Save command pool address of Scsi_Host

2014-08-04 Thread Christoph Hellwig
On Sat, Aug 02, 2014 at 12:24:34AM +0400, James Bottomley wrote: Wait, that's not right at all. There looks to be a thinko in the command pool handling code. We have both a cmd_pool in the host structure and in the host template structure, but there's confusion about which one we're supposed

Re: [PATCH V3] Save command pool address of Scsi_Host

2014-08-04 Thread Christoph Hellwig
On Mon, Aug 04, 2014 at 06:26:09AM +0200, jgr...@suse.com wrote: From: Juergen Gross jgr...@suse.com If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool()

Re: [ANNOUNCE] scsi patch queue tree updated

2014-08-04 Thread Christoph Hellwig
On Fri, Aug 01, 2014 at 04:32:01PM -0400, James Bottomley wrote: On Fri, 2014-08-01 at 05:20 -0700, Christoph Hellwig wrote: I've pushed out updates to both the core-for-3.17 and drivers-for-3.17 branches. So I'm afraid we missed the last -next build on these, so they can't go

Re: [PATCH] scsi/arcmsr: Add timeout module parameter

2014-08-04 Thread Christoph Hellwig
To modify the timeout on a queue please use blk_queue_rq_timeout in the slave_configure method instead of poking directly into the block timer, which won't work e.g. for the blk-mq path. But this really needs an explanation on why you'd need a configurable timeout to start with. -- To

Re: [ANNOUNCE] scsi patch queue tree updated

2014-08-04 Thread Christoph Hellwig
On Mon, Aug 04, 2014 at 09:30:59PM +1000, Stephen Rothwell wrote: You realise that neither of these in linux-next as the scsi-core and scsi-drivers trees had for-3.16 branches in the last round. I assume I should just drop these trees completely from linux-next? Well, they get pulled in

Re: [PATCH] bnx2fc: Set no_async_abort to 1 in SCSI host template.

2014-08-06 Thread Christoph Hellwig
On Tue, Aug 05, 2014 at 05:02:46PM -0400, Chad Dupuis wrote: On Tue, 5 Aug 2014, Venkatesh Srinivas wrote: On Tue, Aug 5, 2014 at 12:45 PM, Chad Dupuis chad.dup...@qlogic.com wrote: Set this to 1 for now as we've observed crashes when this is set to the default value of 0. What sorts of

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-06 Thread Christoph Hellwig
On Wed, Aug 06, 2014 at 03:29:47PM +0200, Douglas Gilbert wrote: If not and since I'm told black lists and the like won't work, my advice for the record is to use FreeBSD or Windows for tools that need this capability. I doubt either of them forces users to hack up flags for these cases. At

Re: [PATCH V5] Save command pool address of Scsi_Host

2014-08-07 Thread Christoph Hellwig
Can I get another review for this one so I can queue it up for 3.17? (or v4 if you have a strong preference for it..) -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-07 Thread Christoph Hellwig
On Wed, Aug 06, 2014 at 04:02:22PM -0400, Alan Stern wrote: I doubt either of them forces users to hack up flags for these cases. Why was this change needed in the first place? There's no explanation in the patch itself. Which chance? The one to not support SG_FLAG_LUN_INHIBIT? At

Re: [PATCH] bnx2fc: Set no_async_abort to 1 in SCSI host template.

2014-08-07 Thread Christoph Hellwig
On Wed, Aug 06, 2014 at 04:01:12PM -0400, Chad Dupuis wrote: This was on RHEL 7. Should we retry the test case with the latest mainline? Yes. Please always test your patches against latest mainline. If that is for some reason not possible please at least very prominently mention that the

Re: [PATCH 0/3] scsi_debug: review fixes for scsi-mq changes

2014-08-07 Thread Christoph Hellwig
Thanks Doug, all the patches look good to me. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2 RESEND 22/23] qla4xxx: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-11 Thread Christoph Hellwig
On Mon, Aug 11, 2014 at 10:54:34AM +0200, Alexander Gordeev wrote: On Mon, Jul 28, 2014 at 11:47:19AM +, Vikas Chaudhary wrote: Acked-By: Vikas Chaudhary vikas.chaudh...@qlogic.com Christoph, This patch seems ready.. I will apply all the patches that have gotten reviews once I

Re: [PATCH V4 4/4] Save command pool address of Scsi_Host

2014-08-11 Thread Christoph Hellwig
Any chance to get a review for this once so I can queued it up for 3.17? On Fri, Aug 08, 2014 at 09:44:00AM +0200, jgr...@suse.com wrote: From: Juergen Gross jgr...@suse.com If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed.

Re: [PATCH V4 2/4] Introduce xen-scsifront module

2014-08-11 Thread Christoph Hellwig
+ BUG_ON(sc-cmd_len VSCSIIF_MAX_COMMAND_SIZE); + + if (sc-cmd_len) I can't see how you can get a zero cmd_len here. +static int scsifront_action_handler(struct scsi_cmnd *sc, uint8_t act) Please add a comment explaining your unusual EH strategy here. +static void

Re: [PATCH v2 3/17] arcmsr: Add code to support system hibernation

2014-08-11 Thread Christoph Hellwig
On Mon, Aug 11, 2014 at 04:07:31PM +0300, Dan Carpenter wrote: On Mon, Aug 11, 2014 at 07:09:55PM +0800, Ching Huang wrote: Yes. 18/18 is obsolete. Thanks to Tomas's advice. There is no way to keep track of all the patches because they aren't in an email thread. Could you resend

Re: [PATCH v2 6/18] arcmsr: precise checking adapter ID

2014-08-11 Thread Christoph Hellwig
On Mon, Aug 04, 2014 at 04:55:12PM +0800, Ching Huang wrote: From: Ching Huang ching2...@areca.com.tw This patch rewrites the arcmsr_define_adapter_type function to precisely check Areca adapter's ID. This can prevent an unknown adapter being used as a default adapter type by driver.

Re: [Xen-devel] [PATCH V4 2/4] Introduce xen-scsifront module

2014-08-11 Thread Christoph Hellwig
On Mon, Aug 11, 2014 at 12:27:29PM +0200, Juergen Gross wrote: What do you mean with unusual? You mean transferring the EH action to Dom0? Yes. Note that hyperv tries something similar and they've run into timeout issues, you might want to read up the recent thread on that. +

Re: [PATCH V4 3/4] Introduce XEN scsiback module

2014-08-11 Thread Christoph Hellwig
+#include scsi/scsi_dbg.h +#include scsi/scsi_eh.h +#include scsi/scsi_tcq.h What do you need these for? Normally target drivers shouldn't need these. +struct vscsibk_emulate { + void (*pre_function)(struct vscsibk_pend *, void *); + void (*post_function)(struct vscsibk_pend *,

Re: [PATCH net-next 2/2] random32: do not feed jiffies as seed from lpfc driver

2014-08-11 Thread Christoph Hellwig
On Mon, Aug 11, 2014 at 01:07:15PM -0400, James Smart wrote: Acked-by: James Smart james.sm...@emulex.com Can you jsut queue this up (and the pci fix as well) together with anything else you have pending for 3.18? I'd really like to move towards a model where maintainers of driver collect

Re: [PATCH] scsi: Fix qemu boot hang problem

2014-08-15 Thread Christoph Hellwig
On Fri, Aug 15, 2014 at 12:34:22PM -0600, Jens Axboe wrote: On 2014-08-15 12:22, Guenter Roeck wrote: ping ... the problem fixed by this patch still affects the upstream kernel (v3.16-11383-gc9d2642) as well as -next (20140815). James, could you upstream this one in time for -rc1? It's in

Re: [ANNOUNCE] scsi patch queue tree updated

2014-08-15 Thread Christoph Hellwig
On Thu, Aug 14, 2014 at 10:47:08AM -0700, James Bottomley wrote: So this is a bit late to get through linux-next and into a pull request. I was planning on sending the final pull tomorrow (in case Linus planned a surprise early release). Can we redo some of these as bug fixes and send them in

Re: [PATCH v3 0/17] arcmsr: change note since v13 or v2

2014-08-19 Thread Christoph Hellwig
Hi Ching, I've fixed up various checkpatch errors and fixed up some descriptions and applied the patches to a branch. This includes patch 4, so please send a fix for this and any other patches relative to the branch. Please find the branch at

Re: [PATCH 13/14] scsi: add support for a blk-mq based I/O path.

2014-08-19 Thread Christoph Hellwig
On Tue, Aug 19, 2014 at 03:51:42AM +0530, Kashyap Desai wrote: I read this comment and find that very few drivers are using this cmd_list. I think if we remove this cmd_list, performance will scale as I am seeing major contention in this lock. Just thought to ping you to see if this is known

Re: [PATCH] drivers: message: fusion: Simplify rounding

2014-08-19 Thread Christoph Hellwig
On Tue, Jul 01, 2014 at 02:56:20PM +0200, Rasmus Villemoes wrote: Rounding up to a multiple of 4 should be done using the ALIGN macro. As a bonus, this also makes the generated code smaller. In GetIocFacts(), sz is assigned to a few lines below without being read in the meantime, so it is ok

Re: [PATCH v3 00/13] scsi: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-19 Thread Christoph Hellwig
Thanks, I've applied patches 1 to 7 to the drivers-for-3.18 branch. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH V2] hpsa: refine the pci enable/disable handling

2014-08-19 Thread Christoph Hellwig
Thanks, applied to the drivers-for-3.18 branch. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] pm8001: Update nvmd response data to request buffer

2014-08-19 Thread Christoph Hellwig
Thanks, applied to the drivers-for-3.18 branch. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 10/15] scsi: fix decimal printf format specifiers prefixed with 0x

2014-08-19 Thread Christoph Hellwig
Thanks, applied to the drivers-for-3.18 tree. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/5] be2iscsi: Fix the sparse warning introduced in previous submission

2014-08-19 Thread Christoph Hellwig
Thanks, applied the whole series to the drivers-for-3.18 tree. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] scsi: fix various kernel-doc problems in scsi_error.c

2014-08-19 Thread Christoph Hellwig
Thanks, I've applied both docbook fixups to the drivers-for-3.18 and also addressed the addition nitpicks from Ewan. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [RFC 09/10] scsi: sd: Avoid sending medium write commands if device is write protected

2014-08-19 Thread Christoph Hellwig
This looks reasonable to me. Martin, and objections? On Mon, Aug 11, 2014 at 03:40:37PM +0300, Dolev Raviv wrote: From: Sujit Reddy Thumma sthu...@codeaurora.org The SYNCHRONIZE_CACHE command is a medium write command and hence can fail when the device is write protected. Avoid sending such

Re: [PATCH] scsi: Fix qemu boot hang problem

2014-08-19 Thread Christoph Hellwig
, SCSI_QUEUE_DELAY); } 'sdev-device_busy == 0' was replaced with 'atomic_read(sdev-device_busy)', meaning the logic was reversed. Changing this expression to '!atomic_read(sdev-device_busy)' fixes the problem. Cc: Christoph Hellwig h...@lst.de Cc: Hannes Reinecke h...@suse.de Cc: Webb

Re: [PATCH 2/2] Drivers: scsi: storvsc: Force discovery of LUNs that may have been removed.

2014-08-19 Thread Christoph Hellwig
On Sat, Aug 16, 2014 at 08:09:48PM -0700, K. Y. Srinivasan wrote: The host asks the guest to scan when a LUN is removed or added. The only way a guest can identify the removed LUN is when an I/O is attempted on a removed LUN - the SRB status code indicates that the LUN is invalid. We currently

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-19 Thread Christoph Hellwig
On Thu, Aug 07, 2014 at 11:58:37AM -0400, Alan Stern wrote: On Wed, Aug 06, 2014 at 04:02:22PM -0400, Alan Stern wrote: I doubt either of them forces users to hack up flags for these cases. Why was this change needed in the first place? There's no explanation in the patch itself.

Re: [PATCH 0/3] scsi_debug: review fixes for scsi-mq changes

2014-08-19 Thread Christoph Hellwig
Thanks, I've applied all three patches to the driver-for-3.18 branch. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] scsi/arcmsr: Add timeout module parameter

2014-08-19 Thread Christoph Hellwig
On Tue, Aug 05, 2014 at 04:10:08PM +0300, Ari Sundholm wrote: On Mon, 4 Aug 2014, Christoph Hellwig wrote: To modify the timeout on a queue please use blk_queue_rq_timeout in the slave_configure method instead of poking directly into the block timer, which won't work e.g. for the blk-mq

Re: [PATCH] scsi.mq:Added enable_cmd_list flags in hostt to reduce lock contention

2014-08-20 Thread Christoph Hellwig
On Wed, Aug 20, 2014 at 06:08:37PM +0530, Kashyap Desai wrote: This code is in the hot path which means that caching enable_cmd_list in struct Scsi_Host (as is done for many other SCSI host parameters) probably will (slightly) improve performance further. Otherwise this patch looks fine

Re: [PATCH v3 00/13] scsi: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-20 Thread Christoph Hellwig
On Wed, Aug 20, 2014 at 08:14:17PM +0100, Alexander Gordeev wrote: I've applied patches 1 to 7 to the drivers-for-3.18 branch. Thanks, Christoph! Not sure how to handle the rest, though. Chelsio driver has no maintainers and none of be2iscsi, pmcraid and csiostor has been reviewed for

Re: Performance degradation in IO writes vs. reads (was scsi-mq V2)

2014-08-21 Thread Christoph Hellwig
On Thu, Aug 21, 2014 at 03:32:09PM +0300, Sagi Grimberg wrote: So I just got back to checking this issue of *extremely low* IO write performance I got in 3.16-rc2. Please test with 3.16 final. There once issue each in aio and dio that caused bad I/O performance regression that were only fixed

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-21 Thread Christoph Hellwig
On Thu, Aug 21, 2014 at 10:41:02AM -0400, Douglas Gilbert wrote: Perhaps we could add another bit flag in struct scsi_host_template such as: unsigned int transport_says_dont_scsi2_lun_cmd:1; then drivers/usb/storage/scsiglue.c could set that bit in its usb_stor_host_template and

Re: [ANNOUNCE] scsi patch queue tree updated

2014-08-21 Thread Christoph Hellwig
On Thu, Aug 21, 2014 at 12:33:17PM -0700, adam radford wrote: Can we get someone to finish reviewing the megaraid_sas patch series ? Or let me know if anything else needs to be corrected ? I know it has been reviewed by yourself and Martin Petersen so far, however, I could not find the

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-21 Thread Christoph Hellwig
On Thu, Aug 21, 2014 at 05:43:41PM -0400, Martin K. Petersen wrote: Alan Okay, here's a patch that implements the suggestion, except that I Alan put the flag in the Scsi_Host structure instead of the template. Alan This was to minimize the impact of the change. Among the various Alan

Re: [ANNOUNCE] scsi patch queue tree updated

2014-08-21 Thread Christoph Hellwig
On Thu, Aug 21, 2014 at 04:26:09PM -0400, Martin K. Petersen wrote: Christoph I think I'm missing an ACK from Martin on one of the patches. 3/5 and 4/5 look good to me. Reviewed-by: Martin K. Petersen martin.peter...@oracle.com Thanks Martin, I'll pull in the megaraid_sas patches for the

Re: [Xen-devel] [PATCH V5 2/5] Add XEN pvSCSI protocol description

2014-08-22 Thread Christoph Hellwig
On Fri, Aug 22, 2014 at 06:18:03AM +0200, Juergen Gross wrote: The resulting number of struct scsiif_request_segment is the sum of seg[0..nr_segments-1].length / sizeof(struct scsiif_request_segment). Where the nr_segments can only go Up to VSCSIIF_SG_TABLESIZE, so the max total SG entries

Re: [PATCH] bnx2fc: fix incorrect DMA memory mapping in bnx2fc_map_sg()

2014-08-22 Thread Christoph Hellwig
On Fri, Aug 22, 2014 at 08:08:33AM -0400, Chad Dupuis wrote: Eddie, Maurizio, Since it looks like there can be a difference in the pdev would it make sense instead to convert the unmap function to use the bare DMA API so we're consistent in our use of hba-pcidev-dev? Maybe something like

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-22 Thread Christoph Hellwig
to do that into the patch. Looks good to me, Acked-by: Christoph Hellwig h...@lst.de Do you want to queue this up in the USB tree? From the looks of what I have on my plate so far it seems like we could avoid conflicts with it in the SCSI tree. -- To unsubscribe from this list: send the line

Re: [PATCH][SCSI] fix regression in SCSI_IOCTL_SEND_COMMAND

2014-08-22 Thread Christoph Hellwig
On Fri, Aug 22, 2014 at 08:28:27PM -0400, Douglas Gilbert wrote: To test this ioctl one option is to get the sg3_utils package and build scsi_ioctl.c in the examples directory with 'make scsi_ioctl'. In lk 3.17-rc1, scsi_ioctl indicates that SCSI_IOCTL_SEND_COMMAND is not working. In my test

Re: [PATCH v1 0/8][SCSI] mpt3sas: Phase2 and Phase3 mpt3sas driver patch set

2014-08-24 Thread Christoph Hellwig
On Sat, Aug 23, 2014 at 05:41:34PM +0530, Sreekanth Reddy wrote: Just resending the complete Phase2 and Phase3 mpt3sas driver patch set Reviewed by the Martin K. Petersen. This will make easy for Christoph to pick up this patch set for next kernel release. Can you please also send me the

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-24 Thread Christoph Hellwig
On Fri, Aug 22, 2014 at 01:29:32PM -0400, Alan Stern wrote: Other than this, I'm fine with the code ... you can add the acked by from me when we resolve the above question. Okay. It's true that this issue is only tangentially related to the main point of the patch. It could be removed

Re: [PATCH 0/2] qla2xxx: Miscellaneous fixes

2014-08-24 Thread Christoph Hellwig
On Fri, Aug 08, 2014 at 07:38:07AM -0400, Chad Dupuis wrote: Hi James, Christoph, Pleas apply the following two patches at your earliest convenience. Thanks, I've applied them to the drivers-for-3.18 branch (actually already a few days ago, so they are in Linux-next already) -- To

Re: [PATCH] drivers: scsi: #define missing include guards

2014-08-24 Thread Christoph Hellwig
On Fri, Aug 22, 2014 at 02:37:33PM +0200, Rasmus Villemoes wrote: The four files aha1542.h, aha1740.h, gvp11.h and mvme147.h under drivers/scsi/ contain two-thirds of an include guard, but do not elsewhere. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk Looks reasonable to me, can

Re: [RESEND][PATCH 07/10] [SCSI] mpt2sas: Added Reply Descriptor Post Queue (RDPQ) Array support

2014-08-24 Thread Christoph Hellwig
Can you please send me a single big series with all the mpt2 and mpt3 updates? With all the resends I'm losing track. Please also pick up third party mpt patches like '[PATCH 3/3] mpt3sas, mpt2sas: fix scsi_add_host error handling problems in _scsih_probe' from Robert Elliott. And while I

Re: [RFC 09/10] sd: Avoid sending medium write commands if device is write protected

2014-08-24 Thread Christoph Hellwig
Thanks, applied. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

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