From: scameron@beardog.cca.cpqcorp.net
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: linux-kernel@vger.kernel.org, mike.miller@hp.com,
jens.axboe@oracle.com, fujita.tomonori@lab.ntt.co.jp,
akpm@linux-foundation.org, linux-scsi@vger.kernel.org,
coldwell@redhat.com, hare@novell.com, iss_storagedev@hp.com
Subject: Re: [PATCH] hpsa: SCSI driver for HP Smart Array controllers
Date: Tue, 3 Mar 2009 15:28:16 -0600 [thread overview]
Message-ID: <20090303212816.GC15340@beardog.cca.cpqcorp.net> (raw)
In-Reply-To: <49AD5F8B.8060602@cs.wisc.edu>
On Tue, Mar 03, 2009 at 10:49:15AM -0600, Mike Christie wrote:
> scameron@beardog.cca.cpqcorp.net wrote:
[...]
> >It's fast, works well, and has needed very little maintenance over the
> >years. Without knowing what you have in mind specifically, I don't see a
> >big need to change this.
> >
>
> Other drivers have had to convert to and modify the host tagging to get
> merged. They too had stable and fast code, and we complained and fought
> against changing it :) I have had to convert or help convert libfc and
> qla4xxx and I will now convert iscsi, so I feel your pain :)
I wasn't complaining, or even resisting actually. What I was replying to
there suggested we use "lists", with no more detail than that specified,
and not anything like what you describe below, so it wasn't clear to me
that anything concrete was being proposed instead of what we had.
Given what was written, it seemed to be just complaining about
some code that looked a little bit complicated. So *that* I was
resisting a bit, or at least pushing for some justification, but if
there's an already established way to share the command allocation logic
between the scsi layer and low level driver as you describe I've got no
problem with that.
>
> To create the map call scsi_init_shared_tag_map after you allocate the
> scsi host and before you add it. Then in slave_alloc set the
> sdev->tag_supported = 1 and call scsi_activate_tcq. Then replace your
> bitmap with:
>
> for scsi commands:
>
> c = h->cmd_pool + scsi_cmnd->request->tag
>
> And for the reset path I was thinking you could use my patch in the
> other mail and do
>
> tag = blk_map_start_tag(scsi_host->bqt, NULL, 0);
> if (tag < 0)
> goto fail;
> c = h->cmd_pool + tag;
> c->cmdindex = tag;
>
> In the completion path you need to do a blk_map_end_tag(scsi_host->bqt,
> c->cmdindex);. The scsi/block layer will free the tag for scsi commadns.
That makes sense. Thanks.
-- steve
next prev parent reply other threads:[~2009-03-03 21:28 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 14:56 scameron
2009-03-03 6:35 ` FUJITA Tomonori
2009-03-03 16:28 ` scameron
2009-03-05 5:48 ` FUJITA Tomonori
2009-03-05 14:21 ` scameron
2009-03-05 16:54 ` Andrew Patterson
2009-03-06 8:55 ` Jens Axboe
2009-03-06 9:13 ` FUJITA Tomonori
2009-03-06 9:21 ` Jens Axboe
2009-03-06 9:27 ` FUJITA Tomonori
2009-03-06 9:35 ` Jens Axboe
2009-03-06 14:38 ` scameron
2009-03-06 19:06 ` Jens Axboe
2009-03-06 20:59 ` Grant Grundler
2009-03-06 21:18 ` scameron
2009-03-06 21:55 ` Grant Grundler
2009-03-06 21:59 ` James Bottomley
2009-03-05 14:55 ` Miller, Mike (OS Dev)
2009-03-03 16:49 ` Mike Christie
2009-03-03 21:28 ` scameron [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-02-27 23:09 Mike Miller
2009-03-01 13:49 ` Rolf Eike Beer
2009-03-02 6:32 ` FUJITA Tomonori
2009-03-02 17:19 ` Grant Grundler
2009-03-02 18:20 ` Mike Christie
2009-03-02 18:36 ` Jens Axboe
2009-03-02 20:33 ` Mike Christie
2009-03-02 20:37 ` Mike Christie
2009-03-03 9:43 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090303212816.GC15340@beardog.cca.cpqcorp.net \
--to=scameron@beardog.cca.cpqcorp.net \
--cc=akpm@linux-foundation.org \
--cc=coldwell@redhat.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hare@novell.com \
--cc=iss_storagedev@hp.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=mike.miller@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®