public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] lockmeter: fixes
@ 2004-09-16 23:03 Ray Bryant
  2004-09-16 23:03 ` [PATCH 1/3] lockmeter: fixed-up: lockmeter fixes for preempt case Ray Bryant
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Ray Bryant @ 2004-09-16 23:03 UTC (permalink / raw)
  To: Ray Bryant, Andrew Morton
  Cc: Ray Bryant, lse-tech, Martin J. Bligh, Zwane Mwaikambo,
	linux-kernel

Andrew,

The first patch in this series is a replacement patch for the prempt-fix
patch I sent earlier this morning.  There was a missing paren in that
previous version.

Adding this to 2.6.9-rc2-mm1 (just after lockmeter-2.patch) fixes the
preempt compile problem on ia64, at least.  However, I then started 
getting a missing symbol for generic_raw_read_trylock.  Hence the second
patch of this series.

(It is the nature of this lockmeter fix for the COOL bits that whenever
a change is made to kernel/spinlock.c, you need to make a correspoding
change to the kernel/lockmeter.c code that parallels spinlock.c. I 
don't see any good way around this.)

Finally, Zwane has suggested making in_lock_functions() an inline.
I sent him and you a simple patch to do that, and if that is applied,
you then need the third patch of this series.

All three of these patches are intended to follow lockmeter-2.patch in
the series.

I compiled lockmeter on/off, preempt on/off (all 4) kernels on ia64.
I'm working on doing that for i386, but my i386 machines are much slower
than an 8-way Altix for doing compiles. :-)  I'll test some of these
as well.

Best Regards,

Ray

raybry@sgi.com

-- 
Best Regards,
Ray
-----------------------------------------------
Ray Bryant                       raybry@sgi.com
The box said: "Requires Windows 98 or better",
           so I installed Linux.
-----------------------------------------------

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 2/3] lockmeter: lockmeter fix for generic_read_trylock
@ 2004-09-16 23:42 Ray Bryant
  0 siblings, 0 replies; 12+ messages in thread
From: Ray Bryant @ 2004-09-16 23:42 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Martin J. Bligh, Zwane Mwaikambo, Ray Bryant, Ray Bryant,
	lse-tech, linux-kernel

Update lockmeter.c with generic_raw_read_trylock fix.
Fixed as per Zwane's comment.

Signed-off-by: Ray Bryant <raybry@sgi.com>

Index: linux-2.6.9-rc2-mm1/kernel/lockmeter.c
===================================================================
--- linux-2.6.9-rc2-mm1.orig/kernel/lockmeter.c	2004-09-16 12:03:20.000000000 -0700
+++ linux-2.6.9-rc2-mm1/kernel/lockmeter.c	2004-09-16 12:29:08.000000000 -0700
@@ -1213,6 +1213,18 @@
  * except for the fact tht calls to _raw_ routines are replaced by
  * corresponding calls to the _metered_ routines
  */
+
+/*
+ * Generic declaration of the raw read_trylock() function,
+ * architectures are supposed to optimize this:
+ */
+int __lockfunc generic_raw_read_trylock(rwlock_t *lock)
+{
+	_raw_read_lock(lock);
+	return 1;
+}
+EXPORT_SYMBOL(generic_raw_read_trylock);
+
 int __lockfunc _spin_trylock(spinlock_t *lock)
 {
 	preempt_disable();

-- 
Best Regards,
Ray
-----------------------------------------------
Ray Bryant                       raybry@sgi.com
The box said: "Requires Windows 98 or better",
           so I installed Linux.
-----------------------------------------------

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-09-19 22:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox