RE: [PATCH 00/11] New Caching mechanism for ib_core

Hefty, Sean
2011-11-09T15:12:04Z

> > > 1. Greater degree of control by individual drivers. Drivers have a
> > > choice to use it or not.
> >
> > I believe that some callers need to know that specific query calls will not
> sleep. That capability should either be required or exposed through the API.
>
> The new cache access functions do not sleep. This is the primary
> objective of the exercise. See motviation 2 :)
> Exceptions are the init functions which may sleep because of kzalloc().
> Did you want me to mention this specifically in the comments?

Yes, but the use of the cache is hidden from the user. Currently calls like ib_query_gid() are allowed to sleep. If drivers are given the choice whether or not to use the cache, then there's no way for a user to know whether a query call will sleep or not.

- Sean