[PATCH 1/6] block: support blk-mq on blk_run_queue/blk_run_queue_async.

2013-11-29 Thread majianpeng
Signed-off-by: Jianpeng Ma --- block/blk-core.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index bf44ca0..549d83e 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -304,8 +304,12 @@ EXPORT_SYMBOL(__blk_run

[RFC PATCH 0/6] scsi-mq: make the scsi-mq work.

2013-11-29 Thread majianpeng
Hi nab: Test http://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git/scsi-mq, it can't work for my machine(using ahci driver). From this branch, i know it support ahci with scsi-mq/block-mq.So i modify some place to make it can work. For this patchset, i only test read/writ

[PATCH 2/6] scsi-mq: add operations about device_busy/target_busy/host_busy in scsi_mq_queue_rq().

2013-11-29 Thread majianpeng
To make the scsi-mq work, add those operations in scsi_mq_queue_rq(). Signed-off-by: Jianpeng Ma --- drivers/scsi/scsi-mq.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/scsi-mq.c b/drivers/scsi/scsi-mq.c index 918b443..eccdbd5 100644 --- a/drivers/scsi/scsi-mq.c ++

[PATCH 3/6] scsi-mq: Don't set QUEUE_FLAG_NONROT in scsi_mq_alloc_queue().

2013-11-29 Thread majianpeng
This flag will be set in sd_revalidate_disk().So remove this operation. Signed-off-by: Jianpeng Ma --- drivers/scsi/scsi-mq.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/scsi-mq.c b/drivers/scsi/scsi-mq.c index eccdbd5..933ba0f 100644 --- a/drivers/scsi/scsi-mq.c +++ b/d

[PATCH 6/6] scsi-mq: Pre-allocation of sg tables base on min(host->hostt->sg_tablesize,SCSI_MQ_MAX_SG_SEGMENTS).

2013-11-29 Thread majianpeng
Signed-off-by: Jianpeng Ma --- drivers/scsi/scsi-mq.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/scsi-mq.c b/drivers/scsi/scsi-mq.c index 78b05c1..7b8137b 100644 --- a/drivers/scsi/scsi-mq.c +++ b/drivers/scsi/scsi-mq.c @@ -154,6 +154,7 @@ in

[PATCH 4/6] scsi-mq: init sg in scsi_init_io.

2013-11-29 Thread majianpeng
Make scsi-mq support blk-pc-command. Signed-off-by: Jianpeng Ma --- drivers/scsi/scsi_lib.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index bed596e..679e840 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/s

[PATCH 5/6] scsi-mq: fix 'BUG_ON(count > sdb->table.nents)' in scsi_init_sgtable().

2013-11-29 Thread majianpeng
Test cdrom on intel ahci, it will trigger this condition. This is because scsi-mq don' test 'q->dma_drain_size && blk_rq_bytes(rq)' like in blk_peek_request(). Signed-off-by: Jianpeng Ma --- drivers/scsi/scsi-mq.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/scsi/scs

[PATCH] qla1280: Annotate timer on stack so object debug does not complain

2013-11-29 Thread Meelis Roos
Object Debug option in 3.13-rc1 resultsin the following warning, cure it by annotating the timer to be on stack. The timer is deleted in the same function so stack seems OK. ODEBUG: object is on stack, but not annotated [ cut here ] WARNING: CPU: 6 PID: 18 at lib/debugob

how to use SES driver to send SES commands?

2013-11-29 Thread Newtech Tan
Hi friends I subscribed the mailing list just now. Would you please to give me help? Who can tell me how to use SES driver(linux/driver/scsi/ses.c) to send SES command(SEND DIAGNOSTIC, RECEIVE DIAGNOSTIC RESULTS) in my linux program? (I don't want to use sg_ses.) The following is my sy

Re: [PATCH 0/2] pm8001 driver code cleanup

2013-11-29 Thread Jack Wang
On 11/27/2013 06:40 AM, Viswas G wrote: > We are resubmitting the following patches in the new patch set > > pm80xx : Removing redundant code snippets > pm80xx : Fixed return value issue > > Please discard the previous patches we submitted for the same. > > [PATCH 5/6] pm80xx : Removing redunda

Re: how to use SES driver to send SES commands?

2013-11-29 Thread Douglas Gilbert
On 13-11-29 05:07 AM, Newtech Tan wrote: Hi friends I subscribed the mailing list just now. Would you please to give me help? Who can tell me how to use SES driver(linux/driver/scsi/ses.c) to send SES command(SEND DIAGNOSTIC, RECEIVE DIAGNOSTIC RESULTS) in my linux program? (I don't

Re: scsi-mq prototype

2013-11-29 Thread Bart Van Assche
On 07/12/13 02:23, Nicholas A. Bellinger wrote: > [ ... ] I would like to discuss scsi-mq, a high performance SCSI > initiator prototype that utilizes blk-mq [ ... ] (replying to an e-mail of four months ago) It took a while but I finally found some time to look further into blk-mq and scsi-mq. D