From: Ray Bryant <raybry@sgi.com>
To: Zwane Mwaikambo <zwane@linuxpower.ca>
Cc: Ray Bryant <raybry@austin.rr.com>, Andrew Morton <akpm@osdl.org>,
lse-tech@lists.sourceforge.net,
"Martin J. Bligh" <mbligh@aracnet.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] lockmeter: lockmeter fix for generic_read_trylock
Date: Thu, 16 Sep 2004 18:38:51 -0500 [thread overview]
Message-ID: <414A240B.5050105@sgi.com> (raw)
In-Reply-To: <Pine.LNX.4.53.0409161918520.2897@musoma.fsmlabs.com>
Zwane Mwaikambo wrote:
> On Thu, 16 Sep 2004, Ray Bryant wrote:
>
>
>>Update lockmeter.c with generic_raw_read_trylock fix.
>>
>>+ * Generic declaration of the raw read_trylock() function,
>>+ * architectures are supposed to optimize this:
>>+ */
>>+int __lockfunc generic_raw_read_trylock(rwlock_t *lock)
>>+{
>>+ _metered_read_lock(lock, __builtin_return_address(0));
>>+ return 1;
>>+}
>
>
> What's really going on here? I'm slightly confused by the
> _metered_read_lock usage.
>
> Thanks,
> Zwane
>
>
Yeah, I think overly patterned matched on this one. I just
grabbed the code from spinlock.c and do what I normally do to
make it lockmetered, but in this case since its a _raw_ routine, I
should have left it alone. It just needs to be duplicated in
lockmeter.c, not lockmeter'd.
So that middle line there should be:
_raw_read_lock(lock);
instead. I'll get this straightend out with Andrew shortly.
--
Best Regards,
Ray
-----------------------------------------------
Ray Bryant
512-453-9679 (work) 512-507-7807 (cell)
raybry@sgi.com raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
so I installed Linux.
-----------------------------------------------
next prev parent reply other threads:[~2004-09-16 23:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-16 23:03 [PATCH 0/3] lockmeter: fixes Ray Bryant
2004-09-16 23:03 ` [PATCH 1/3] lockmeter: fixed-up: lockmeter fixes for preempt case Ray Bryant
2004-09-16 23:04 ` [PATCH 2/3] lockmeter: lockmeter fix for generic_read_trylock Ray Bryant
2004-09-16 19:20 ` Zwane Mwaikambo
2004-09-16 23:38 ` Ray Bryant [this message]
2004-09-16 23:04 ` [PATCH 3/3] lockmeter: lockmeter fix for inline in_lock_functions() Ray Bryant
2004-09-17 7:31 ` [PATCH 0/3] lockmeter: fixes Christoph Hellwig
2004-09-17 18:52 ` Ray Bryant
2004-09-17 19:31 ` Christoph Hellwig
2004-09-19 11:15 ` Alexander Nyberg
2004-09-19 22:39 ` Ray Bryant
-- strict thread matches above, loose matches on Subject: below --
2004-09-16 23:42 [PATCH 2/3] lockmeter: lockmeter fix for generic_read_trylock Ray Bryant
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=414A240B.5050105@sgi.com \
--to=raybry@sgi.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lse-tech@lists.sourceforge.net \
--cc=mbligh@aracnet.com \
--cc=raybry@austin.rr.com \
--cc=zwane@linuxpower.ca \
/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.