Re: [PATCH v12 0/5] block layer runtime pm

2013-03-28 Thread Aaron Lu
On 03/23/2013 12:23 PM, Jens Axboe wrote: On Sat, Mar 23 2013, Aaron Lu wrote: In August 2010, Jens and Alan discussed about Runtime PM and the block layer. http://marc.info/?t=12825910841r=1w=2 And then Alan has given a detailed implementation guide:

block: Allow merging of tail pages into the last segment

2013-03-28 Thread Jan Vesely
Hi These patches modify __bio_add_page to accept pages that extent the last bio segment. some drivers craft their buffers and rely on this behavior (see message in patch 2 for details) jan v3: Use code from __blk_recalc_rq_segments to decide whether the page is mergeable, v2: modify a

[PATCH v3 1/2] block: factor out vector mergeable decision to a helper function

2013-03-28 Thread Jan Vesely
Export the function so it can be used to predict segment counts without calling the recalc function. This will be used in the next patch. Signed-off-by: Jan Vesely jves...@redhat.com Cc: Alexander Viro v...@zeniv.linux.org.uk Cc: James Bottomley james.bottom...@hansenpartnership.com Cc: Jens

[PATCH v3 2/2] block: modify __bio_add_page check to accept pages that don't start a new segment

2013-03-28 Thread Jan Vesely
The original behavior was to refuse all pages after the maximum number of segments has been reached. However, some drivers (like st) craft their buffers to potentially require exactly max segments and multiple pages in the last segment. This patch modifies the check to allow pages that can be

[PATCH 0/5] qla2xxx: Patches for scsi misc branch.

2013-03-28 Thread Saurav Kashyap
Hi James, Please apply the following patches to the scsi tree at your earliest convenience for inclusion in the next mainline merge window. Thanks, ~Saurav Giridhar Malavali (1): qla2xxx: Enhancements to support ISPFx00. Joe Carnuccio (2): qla2xxx: Add clarifying printk to thermal access

[PATCH 2/5] qla2xxx: Remove duplicated include form qla_isr.c

2013-03-28 Thread Saurav Kashyap
From: Wei Yongjun yongjun_...@trendmicro.com.cn Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn Signed-off-by: Saurav Kashyap saurav.kash...@qlogic.com --- drivers/scsi/qla2xxx/qla_isr.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git

[PATCH 4/5] qla2xxx: Obtain loopback iteration count from bsg request.

2013-03-28 Thread Saurav Kashyap
From: Joe Carnuccio joe.carnuc...@qlogic.com qla2x00_loopback_test() was hard setting the loopback iteration count to 1 rather than obtaining it from the bsg request. Signed-off-by: Joe Carnuccio joe.carnuc...@qlogic.com Signed-off-by: Saurav Kashyap saurav.kash...@qlogic.com ---

[PATCH 5/5] qla2xxx: Update the driver version to 8.05.00.03-k.

2013-03-28 Thread Saurav Kashyap
Signed-off-by: Giridhar Malavali giridhar.malav...@qlogic.com Signed-off-by: Saurav Kashyap saurav.kash...@qlogic.com --- drivers/scsi/qla2xxx/qla_version.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_version.h

Re: [PATCH 5/6] scsi: replace obsolete NLMSG_* with type safe nlmsg_*

2013-03-28 Thread Thomas Graf
On 03/28/13 at 12:53am, Hong Zhiguo wrote: Signed-off-by: Hong Zhiguo honk...@gmail.com There are some formatting errors but the Netlink bits themselves look good. -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 5/6] scsi: replace obsolete NLMSG_* with type safe nlmsg_*

2013-03-28 Thread Hong zhi guo
Thanks, Thomas. But I didn't change any formatting. Just do the substitution in place. On Thu, Mar 28, 2013 at 10:45 PM, Thomas Graf tg...@suug.ch wrote: On 03/28/13 at 12:53am, Hong Zhiguo wrote: Signed-off-by: Hong Zhiguo honk...@gmail.com There are some formatting errors but the Netlink

RE: error handler scheduling

2013-03-28 Thread Elliott, Robert (Server Storage)
There are several possible reasons for SCSI command timeouts: a) the command request did not get to the SCSI target port and logical unit (e.g., error on the wire) b) logical unit is still working on the command c) the command completed, but status didn't get to the SCSI

Re: [PATCH 5/6] scsi: replace obsolete NLMSG_* with type safe nlmsg_*

2013-03-28 Thread Mike Christie
On 03/27/2013 11:53 AM, Hong Zhiguo wrote: Signed-off-by: Hong Zhiguo honk...@gmail.com --- drivers/scsi/scsi_netlink.c |4 +-- drivers/scsi/scsi_transport_fc.c| 21 + drivers/scsi/scsi_transport_iscsi.c | 56 +-- 3 files

Re: [PATCH 5/6] scsi: replace obsolete NLMSG_* with type safe nlmsg_*

2013-03-28 Thread David Miller
From: Thomas Graf tg...@suug.ch Date: Thu, 28 Mar 2013 14:45:02 + On 03/28/13 at 12:53am, Hong Zhiguo wrote: Signed-off-by: Hong Zhiguo honk...@gmail.com There are some formatting errors but the Netlink bits themselves look good. I'll fix these up too when I commit. -- To unsubscribe

[patch] scsi_dh_hp_sw.c: return DEV_OFFLINED when blk_get_request fails

2013-03-28 Thread Jeff Moyer
Hi, If blk_get_requet fails here, it means that the queue is dead. It seems better to return a DEV_OFFLINED error code than the misleading TEMP_UNAVAIL. Comments? Signed-off-by: Jeff Moyer jmo...@redhat.com diff --git a/drivers/scsi/device_handler/scsi_dh_hp_sw.c

Re: [patch] scsi_dh_hp_sw.c: return DEV_OFFLINED when blk_get_request fails

2013-03-28 Thread Mike Christie
On 03/28/2013 02:32 PM, Jeff Moyer wrote: Hi, If blk_get_requet fails here, it means that the queue is dead. It seems better to return a DEV_OFFLINED error code than the misleading TEMP_UNAVAIL. Comments? Signed-off-by: Jeff Moyer jmo...@redhat.com diff --git

Re: [patch] scsi_dh_hp_sw.c: return DEV_OFFLINED when blk_get_request fails

2013-03-28 Thread Joe Lawrence
On Thu, 28 Mar 2013 15:32:12 -0400 Jeff Moyer jmo...@redhat.com wrote: Hi, If blk_get_requet fails here, it means that the queue is dead. It seems better to return a DEV_OFFLINED error code than the misleading TEMP_UNAVAIL. Comments? Signed-off-by: Jeff Moyer jmo...@redhat.com diff

[PATCH] scsi_dh_alua: Add module parameter to allow failover to non preferred path without STPG

2013-03-28 Thread Stewart, Sean
Currently ALUA device handler sends STPG command during failover and failback. Failover can be optimized by implicit failover (by not to sending STPG command), when 1 is passed as hwhandler parameter in multipath.conf. ex 2 alua 1. We may need to pass the parameter through module param for alua