From: Goldwyn Rodrigues <rgoldwyn-l3A5Bk7waGM@public.gmane.org>
To: "Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH 00/11] New Caching mechanism for ib_core
Date: Thu, 10 Nov 2011 09:50:29 +0530 [thread overview]
Message-ID: <20111110042029.GA7713@shrek.cartoons> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A8237316E8DE44-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
On Wed, Nov 09, 2011 at 03:12:04PM +0000, Hefty, Sean wrote:
> > > > 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.
user who?
> 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.
>
The cache calls do not sleep. Period.
AFAIK, the problem is with assuming calls do not sleep, when they
actually do and not vice versa.
What problems do you forsee if we declare that cache calls do not sleep?
Since the drivers would be users of cache calls, the behavior would be
as assumed for the query calls for the driver. Refer mthca
implementation (PATCH 11/11): If the entry is found in cache, it
will return immediately, and will not sleep. If the entry is not
found, it will query the device and may sleep. In essence we still
hold that the query functions may sleep, but if the data is available
in cache it will return faster.
--
Goldwyn
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-11-10 4:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 8:47 [PATCH 00/11] New Caching mechanism for ib_core Goldwyn Rodrigues
[not found] ` <20111107084747.GA11297-DN/iB9hNKqpUanf73oPxOg@public.gmane.org>
2011-11-08 23:46 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237316E8DDCE-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-11-09 12:19 ` Goldwyn Rodrigues
[not found] ` <20111109121907.GA6763-DN/iB9hNKqpUanf73oPxOg@public.gmane.org>
2011-11-09 15:12 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237316E8DE44-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-11-10 4:20 ` Goldwyn Rodrigues [this message]
[not found] ` <20111110042029.GA7713-DN/iB9hNKqpUanf73oPxOg@public.gmane.org>
2011-11-10 7:03 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237316E95317-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2011-11-11 4:15 ` Goldwyn Rodrigues
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=20111110042029.GA7713@shrek.cartoons \
--to=rgoldwyn-l3a5bk7wagm@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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