From: Peter Braam <Peter.Braam@Sun.COM>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] Completion callbacks
Date: Wed, 13 Aug 2008 16:28:33 -0600 [thread overview]
Message-ID: <C4C8BC31.6CC1%peter.braam@sun.com> (raw)
In-Reply-To: <48A2BFD3.2070900@sun.com>
I think it's a requirement that software using the API's is not aware of
this (ie no significant changes in ptlrpc). As long as the solution is
compatible with that, this looks fine.
Peter
On 8/13/08 5:04 AM, "Maxim V. Patlasov" <Maxim.Patlasov@Sun.COM> wrote:
> Folks,
>
>> Liang Zhen ??:
>>
>>>>
>>>> 2. we change ptlrpc_master_callback so that: it makes a copy of EV and
>>>> queue it in a
>>>> FIFO and return, another thread process ev's in this FIFO and callback
>>>> one by one and
>>>> we can guarantee events order and call real callbacks without lnet_lock
>>>>
>>>
>>
>> We can even have an eq_callback_thread (or threads pool) in LNet,
>> lnet_enq_event_locked() enqueue event and wakeup the callback_thread,
>> so we don't need change ptlrpc at all.
>>
>
> I dislike the idea of introducing any additional callback-devoted
> threads because 1) it would spoil the original design of callbacks as
> light-weight notifications and 2) introduce additional latency. I'd
> prefer to see per-MD locks (or per-EQ array of locks, that's quite
> equivalent) to serialize calling callbacks associated with any
> particular MD. This approach looks more natural and "right" than
> inventing callback-threads.
>
> Sincerely,
> Maxim
>
> _______________________________________________
> Lustre-devel mailing list
> Lustre-devel at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-devel
next prev parent reply other threads:[~2008-08-13 22:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 11:04 [Lustre-devel] Completion callbacks Maxim V. Patlasov
2008-08-13 22:28 ` Peter Braam [this message]
2008-08-14 9:28 ` Eric Barton
2008-08-15 2:42 ` Liang Zhen
-- strict thread matches above, loose matches on Subject: below --
2008-08-12 18:05 Eric Barton
2008-08-13 3:24 ` Peter Braam
2008-08-13 3:53 ` Nikita Danilov
2008-08-13 5:52 ` Liang Zhen
2008-08-13 6:32 ` Liang Zhen
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=C4C8BC31.6CC1%peter.braam@sun.com \
--to=peter.braam@sun.com \
--cc=lustre-devel@lists.lustre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.