From: Chetan Loke <chetanloke@gmail.com>
To: 王金浦 <jinpuwang@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: libsas - sas_queue's policy of re-queuing all the tasks ...
Date: Thu, 24 Dec 2009 10:08:23 -0500 [thread overview]
Message-ID: <b2f3590f0912240708p659dee0ap744bb39a0a480644@mail.gmail.com> (raw)
In-Reply-To: <7fc616880912240426q249c72b1n45d488fe0e6a9770@mail.gmail.com>
On Thu, Dec 24, 2009 at 7:26 AM, 王金浦 <jinpuwang@gmail.com> wrote:
>
>
> 2009/12/24 Chetan Loke <chetanloke@gmail.com>
>>
>> Hello,
>>
>> I've a question regarding the libsas core.
>>
>> So, sas_queue() will dispatch the coalesced tasks. It then invokes the
>> SAS_LLDD's execute_task. Let's assume mv_sas driver.In this case
>> mvs_task_exec(). Say, it received 'N' tasks the first time it was
>> called.However, the LLDD was only able to service M tasks(where M<N).
>> Now it will return rc(non-zero value). sas_queue will then requeue all
>> the tasks. But only (N-M) tasks should have been queued, correct? So
>> why are we re-trying all the tasks again?
>>
>
> if you see the code , at mv_init , in function mvs_post_sas_ha_init set
> sha->lldd_max_execute_num = 1;
> and libsas invoke sas_queue_up when sha->lldd_max_execute_num> 1 .
>
Ignore the max_execute_num for this discussion. What I'm saying is, if
you do 'coalesce' the tasks.
mv_sas core clearly has 256+ slots in their adapter. That means you
could coalesce them. Well, that's not the point.
What I would like to know is why does the libsas core wants to requeue
all the tasks?
What was the rationale behind this logic?
> Jack Wang
>
Chetan Loke
prev parent reply other threads:[~2009-12-24 15:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 21:58 Chetan Loke
[not found] ` <7fc616880912240426q249c72b1n45d488fe0e6a9770@mail.gmail.com>
2009-12-24 15:08 ` Chetan Loke [this message]
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=b2f3590f0912240708p659dee0ap744bb39a0a480644@mail.gmail.com \
--to=chetanloke@gmail.com \
--cc=jinpuwang@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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®