Re: [PULL] vhost: infrastructure changes for 3.16

2014-06-12 Thread Romain Francoise
Michael S. Tsirkin m...@redhat.com writes: Memory allocation for vhost-net now supports fallback on vmalloc (same as for vhost-scsi) this makes it possible to create the device on systems where memory is very fragmented, with slightly lower performance. Thanks Michael, I'm glad to see that

[PATCH v1 2/2] ata: Fix the dma state machine lockup for the PIO mode commands.

2014-06-12 Thread Suman Tripathi
This patch fixes the dma state machine lockup due to the PIO mode commands. The controller is unable to clear the BSY bit after receiving the PIO setup FIS and results the dma state machine to go into the CMFataErrorUpdate state resulting in dma state machine lockup. Signed-off-by: Loc Ho

[PATCH v1 1/2] libahci: Implement the function ahci_restart_engine to restart the port dma engine.

2014-06-12 Thread Suman Tripathi
This patch implements the function ahci_restart_engine function to restart the port dma engine. Signed-off-by: Loc Ho l...@apm.com Signed-off-by: Suman Tripathi stripa...@apm.com --- drivers/ata/ahci.h| 1 + drivers/ata/libahci.c | 10 ++ 2 files changed, 11 insertions(+) diff

[PATCH v1 0/2]ata: Fix the dma state machine lockup for APM X-Gene SoC

2014-06-12 Thread Suman Tripathi
Suman Tripathi (2): libahci: Implement the function ahci_restart_engine to restart the port dma engine. ata: Fix the dma state machine lockup for the PIO mode commands. drivers/ata/ahci.h | 3 +++ drivers/ata/ahci_xgene.c | 17 +++-- drivers/ata/libahci.c| 43

scsi-mq

2014-06-12 Thread Christoph Hellwig
With all the required blk-mq work, and the previous set of scsi midlayer updates in Linus' tree this is the time for the first format scsi-mq submission. At this point the code is ready for merging and use by developers and early adopters. The core blk-mq code isn't that suitable for slow

[PATCH 14/14] fnic: reject device resets without assigned tags for the blk-mq case

2014-06-12 Thread Christoph Hellwig
Current the midlayer fakes up a struct request for the explicit reset ioctls, and those don't have a tag allocated to them. The fnic driver pokes into midlayer structures to paper over this design issue, but that won't work for the blk-mq case. Either someone who can actually test the hardware

[PATCH 12/14] scatterlist: allow chaining to preallocated chunks

2014-06-12 Thread Christoph Hellwig
Blk-mq drivers usually preallocate their S/G list as part of the request, but if we want to support the very large S/G lists currently supported by the SCSI code that would tie up a lot of memory in the preallocated request pool. Add support to the scatterlist code so that it can initialize a S/G

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

2014-06-12 Thread Christoph Hellwig
This patch adds support for an alternate I/O path in the scsi midlayer which uses the blk-mq infrastructure instead of the legacy request code. Use of blk-mq is fully transparent to drivers, although for now a host template field is provided to opt out of blk-mq usage in case any unforseen

[PATCH 10/14] scsi: only maintain target_blocked if the driver has a target queue limit

2014-06-12 Thread Christoph Hellwig
This saves us an atomic operation for each I/O submission and completion for the usual case where the driver doesn't set a per-target can_queue value. Only a few iscsi hardware offload drivers set the per-target can_queue value at the moment. Signed-off-by: Christoph Hellwig h...@lst.de ---

[PATCH 08/14] scsi: convert device_busy to atomic_t

2014-06-12 Thread Christoph Hellwig
Avoid taking the queue_lock to check the per-device queue limit. Instead we do an atomic_inc_return early on to grab our slot in the queue, and if nessecary decrement it after finishing all checks. Unlike the host and target busy counters this doesn't allow us to avoid the queue_lock in the

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

2014-06-12 Thread Christoph Hellwig
Avoid taking the host-wide host_lock to check the per-host queue limit. Instead we do an atomic_inc_return early on to grab our slot in the queue, and if nessecary decrement it after finishing all checks. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/advansys.c |4

[PATCH 09/14] scsi: fix the {host,target,device}_blocked counter mess

2014-06-12 Thread Christoph Hellwig
Seems like these counters are missing any sort of synchronization for updates, as a over 10 year old comment from me noted. Fix this by using atomic counters, and while we're at it also make sure they are in the same cacheline as the _busy counters and not needlessly stored to in every I/O

[PATCH 11/14] scsi: unwind blk_end_request_all and blk_end_request_err calls

2014-06-12 Thread Christoph Hellwig
Replace the calls to the various blk_end_request variants with opencode equivalents. Blk-mq is using a model that gives the driver control between the bio updates and the actual completion, and making the old code follow that same model allows us to keep the code more similar for both pathes.

[PATCH 06/14] scsi: convert target_busy to an atomic_t

2014-06-12 Thread Christoph Hellwig
Avoid taking the host-wide host_lock to check the per-target queue limit. Instead we do an atomic_inc_return early on to grab our slot in the queue, and if nessecary decrement it after finishing all checks. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/scsi_lib.c| 52

[PATCH 04/14] scsi: set -scsi_done before calling scsi_dispatch_cmd

2014-06-12 Thread Christoph Hellwig
The blk-mq code path will set this to a different function, so make the code simpler by setting it up in a legacy-request specific place. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/scsi.c | 23 +-- drivers/scsi/scsi_lib.c | 20

[PATCH 01/14] sd: don't use rq-cmd_len before setting it up

2014-06-12 Thread Christoph Hellwig
Unlike the old request code blk-mq doesn't initialize cmd_len with a default value, so don't rely on it being set in sd_setup_write_same_cmnd. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/sd.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 03/14] scsi: centralize command re-queueing in scsi_dispatch_fn

2014-06-12 Thread Christoph Hellwig
Make sure we only have the logic for requeing commands in one place. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/scsi.c | 36 +--- drivers/scsi/scsi_lib.c |9 ++--- 2 files changed, 19 insertions(+), 26 deletions(-) diff --git

[PATCH 02/14] scsi: split __scsi_queue_insert

2014-06-12 Thread Christoph Hellwig
Factor out a helper to set the _blocked values, which we'll reuse for the blk-mq code path. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/scsi_lib.c | 44 ++-- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git

[PATCH] hpsa: refine the pci enble/disable handling

2014-06-12 Thread Tomas Henzl
When a second(kdump) kernel starts and the hard reset method is used the driver calls pci_disable_device without previously enabling it, so the kernel shows a warning - [ 16.876248] WARNING: at drivers/pci/pci.c:1431 pci_disable_device+0x84/0x90() [ 16.882686] Device hpsa disabling

All devices on host blocked

2014-06-12 Thread Michael Robbert
I have a large JBOD attached to my server via an LSI SAS2308 PCI card(mpt2sas driver). I've got about 40 drives right now assembled into 4 Linux software RAID sets and I am using those RAID volumes as back end devices for GPFS. Everything was working fine about a week ago when I had 20 drives

Re: [PATCH] bnx2fc: Do not log error for netevents that need no action

2014-06-12 Thread Chad Dupuis
On Tue, 10 Jun 2014, Eddie Wai wrote: On Fri, 2014-06-06 at 13:05 -0500, shirishpargaon...@gmail.com wrote: From: Shirish Pargaonkar shirishpargaon...@gmail.com Do not log error for netevents that need no action such as NETDEV_REGISTER 0x0005, NETDEV_CHANGEADDR, and NETDEV_CHANGENAME. It

[GIT PULL] target updates for v3.16-rc1

2014-06-12 Thread Nicholas A. Bellinger
Hello Linus, Here are the target-pending updates for v3.16-rc1 code. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git for-next Note that you'll need to 'thread the needle' this time around, as there are no less than four different merge

[PATCH v4] sg: O_EXCL and other lock handling

2014-06-12 Thread Douglas Gilbert
This is a re-presentation of a patch to the sg driver whose v3 was sent in November 2013: http://www.spinics.net/lists/linux-scsi/msg69957.html It addresses a problem reported by Vaughan Cao concerning the correctness of the O_EXCL logic in the sg driver. POSIX doesn't defined O_EXCL semantics

[Announce] sg3_utils-1.39 available

2014-06-12 Thread Douglas Gilbert
The sg_ses utility (for enclosure devices) is discussed at: http://sg.danny.cz/sg/sg_ses.html A full changelog can be found at: http://sg.danny.cz/sg/p/sg3_utils.ChangeLog A release announcement will be sent to freecode.com . Changelog for sg3_utils-1.39 [20140612] [svn: r588] - sg_rep_zones