[openib-general] Re: RFC: ib_cache_event problems
Michael S. Tsirkin
mst at mellanox.co.il
Tue Jun 6 13:35:38 PDT 2006
Quoting r. Roland Dreier <rdreier at cisco.com>:
> Subject: Re: RFC: ib_cache_event problems
>
> > 1. Cache should create ib_update_work objects statically upon hotplug event.
>
> Seems reasonable, since multiple pending cache update events can be
> safely coalesced into one.
>
> > 2. Need a mechanism for cache to consume events which trigger cache updates,
> > and delay reporting them to ULPs until after cache is updated.
>
> This seems like overkill to me. And I don't see how to avoid
> GFP_ATOMIC allocations that might fail, since the cache module would
> need to maintain an arbitrary-length queue of pending events.
Hmm. Thinking about it some more - how about generating the events
from a mad thread in core rather than from povider?
Then this would be thread context so cache could simply perform updates
inline in event handler.
--
MST
More information about the general
mailing list