Re: [PATCH] checkpatch.pl: show how to read from stdin

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 18:06 +0100, Stefan Richter wrote: > Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> > Acked-by: Jiri Slaby <[EMAIL PROTECTED]> > --- > scripts/checkpatch.pl |1 + > 1 file changed, 1 insertion(+) > > Index: linux/scripts/checkpatch.pl >

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 10:41 +0100, Jiri Slaby wrote: > On 01/11/2008 10:36 AM, Daniel Walker wrote: > > On Fri, 2008-01-11 at 10:34 +0100, Jiri Slaby wrote: > >> If somebody is hacking kernel, I think he should know the - trick used in > >> many > >> programs

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 10:34 +0100, Jiri Slaby wrote: > On 01/11/2008 10:30 AM, Daniel Walker wrote: > > On Fri, 2008-01-11 at 10:23 +0100, Bernd Petrovitsch wrote: > >> On Fre, 2008-01-11 at 10:21 +0100, Jiri Slaby wrote: > >>> git show 9914cad54c79d0b89b1f066c089

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 10:23 +0100, Bernd Petrovitsch wrote: > On Fre, 2008-01-11 at 10:21 +0100, Jiri Slaby wrote: > > On 01/11/2008 10:17 AM, Daniel Walker wrote: > > > On Fri, 2008-01-11 at 09:52 +0100, Jiri Slaby wrote: > > >> On 01/11/2008 05:10 AM, Daniel

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 09:52 +0100, Jiri Slaby wrote: > On 01/11/2008 05:10 AM, Daniel Walker wrote: > > A little feature addition to allow checkpatch.pl to check patches piped > > into it, in addition to specific file arguments. > > You can still add - as an argument to chec

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 09:52 +0100, Jiri Slaby wrote: On 01/11/2008 05:10 AM, Daniel Walker wrote: A little feature addition to allow checkpatch.pl to check patches piped into it, in addition to specific file arguments. You can still add - as an argument to check stdin. In which way

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 10:23 +0100, Bernd Petrovitsch wrote: On Fre, 2008-01-11 at 10:21 +0100, Jiri Slaby wrote: On 01/11/2008 10:17 AM, Daniel Walker wrote: On Fri, 2008-01-11 at 09:52 +0100, Jiri Slaby wrote: On 01/11/2008 05:10 AM, Daniel Walker wrote: A little feature addition

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 10:34 +0100, Jiri Slaby wrote: On 01/11/2008 10:30 AM, Daniel Walker wrote: On Fri, 2008-01-11 at 10:23 +0100, Bernd Petrovitsch wrote: On Fre, 2008-01-11 at 10:21 +0100, Jiri Slaby wrote: git show 9914cad54c79d0b89b1f066c0894f00e1344131c | ./scripts/checkpatch.pl

Re: [PATCH] checkpatch.pl: allow piping

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 10:41 +0100, Jiri Slaby wrote: On 01/11/2008 10:36 AM, Daniel Walker wrote: On Fri, 2008-01-11 at 10:34 +0100, Jiri Slaby wrote: If somebody is hacking kernel, I think he should know the - trick used in many programs, but do not consider this as a nack. I'm

Re: [PATCH] checkpatch.pl: show how to read from stdin

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 18:06 +0100, Stefan Richter wrote: Signed-off-by: Stefan Richter [EMAIL PROTECTED] Acked-by: Jiri Slaby [EMAIL PROTECTED] --- scripts/checkpatch.pl |1 + 1 file changed, 1 insertion(+) Index: linux/scripts/checkpatch.pl

Re: [PATCH] checkpatch.pl: show how to read from stdin

2008-01-11 Thread Daniel Walker
On Fri, 2008-01-11 at 18:29 +0100, Stefan Richter wrote: Daniel Walker wrote: On Fri, 2008-01-11 at 18:06 +0100, Stefan Richter wrote: Signed-off-by: Stefan Richter [EMAIL PROTECTED] + print When patchfile is -, read standard input.\n; Naww .. Why add documentation when you can just

[PATCH] checkpatch.pl: allow piping

2008-01-10 Thread Daniel Walker
A little feature addition to allow checkpatch.pl to check patches piped into it, in addition to specific file arguments. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- scripts/checkpatch.pl | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) Index: linux-2.6.23/s

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Fri, 2008-01-11 at 00:40 +0100, Paolo Ciarrocchi wrote: > On Jan 11, 2008 12:08 AM, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > The git logs also show that arch/x86/math-emu/fpu_trig.c hasn't been > > modified since it was pull in on Oct. 11 .. > > Daniel

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Fri, 2008-01-11 at 00:40 +0100, Paolo Ciarrocchi wrote: > On Jan 11, 2008 12:08 AM, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > The git logs also show that arch/x86/math-emu/fpu_trig.c hasn't been > > modified since it was pull in on Oct. 11 .. > > Daniel

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Thu, 2008-01-10 at 23:35 +0100, Paolo Ciarrocchi wrote: > On Jan 10, 2008 9:03 PM, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > > > > I was playing with checkpatch.pl ;) .. I made a list of style offenders > > inside the arch/x86/ sub-directo

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Thu, 2008-01-10 at 23:47 +0100, Paolo Ciarrocchi wrote: > On Jan 10, 2008 11:41 PM, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > > On Thu, 2008-01-10 at 23:35 +0100, Paolo Ciarrocchi wrote: > > > On Jan 10, 2008 9:03 PM, Daniel Walker <[EMAIL PROTECTED]&

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Thu, 2008-01-10 at 23:35 +0100, Paolo Ciarrocchi wrote: > On Jan 10, 2008 9:03 PM, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > > > > I was playing with checkpatch.pl ;) .. I made a list of style offenders > > inside the arch/x86/ sub-directo

[x86] list of style offenders

2008-01-10 Thread Daniel Walker
I was playing with checkpatch.pl ;) .. I made a list of style offenders inside the arch/x86/ sub-directory. I thought it might be helpful to prioritize any style clean ups that people might want to do for x86 .. OTOH some of these might show imperfections in checkpatch.pl .. Either way I thought

[x86] list of style offenders

2008-01-10 Thread Daniel Walker
I was playing with checkpatch.pl ;) .. I made a list of style offenders inside the arch/x86/ sub-directory. I thought it might be helpful to prioritize any style clean ups that people might want to do for x86 .. OTOH some of these might show imperfections in checkpatch.pl .. Either way I thought

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Thu, 2008-01-10 at 23:35 +0100, Paolo Ciarrocchi wrote: On Jan 10, 2008 9:03 PM, Daniel Walker [EMAIL PROTECTED] wrote: I was playing with checkpatch.pl ;) .. I made a list of style offenders inside the arch/x86/ sub-directory. I thought it might be helpful to prioritize any style

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Thu, 2008-01-10 at 23:47 +0100, Paolo Ciarrocchi wrote: On Jan 10, 2008 11:41 PM, Daniel Walker [EMAIL PROTECTED] wrote: On Thu, 2008-01-10 at 23:35 +0100, Paolo Ciarrocchi wrote: On Jan 10, 2008 9:03 PM, Daniel Walker [EMAIL PROTECTED] wrote: I was playing

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Thu, 2008-01-10 at 23:35 +0100, Paolo Ciarrocchi wrote: On Jan 10, 2008 9:03 PM, Daniel Walker [EMAIL PROTECTED] wrote: I was playing with checkpatch.pl ;) .. I made a list of style offenders inside the arch/x86/ sub-directory. I thought it might be helpful to prioritize any style

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Fri, 2008-01-11 at 00:40 +0100, Paolo Ciarrocchi wrote: On Jan 11, 2008 12:08 AM, Daniel Walker [EMAIL PROTECTED] wrote: The git logs also show that arch/x86/math-emu/fpu_trig.c hasn't been modified since it was pull in on Oct. 11 .. Daniel, are we looking at the same tree

Re: [x86] list of style offenders

2008-01-10 Thread Daniel Walker
On Fri, 2008-01-11 at 00:40 +0100, Paolo Ciarrocchi wrote: On Jan 11, 2008 12:08 AM, Daniel Walker [EMAIL PROTECTED] wrote: The git logs also show that arch/x86/math-emu/fpu_trig.c hasn't been modified since it was pull in on Oct. 11 .. Daniel, are we looking at the same tree

[PATCH] checkpatch.pl: allow piping

2008-01-10 Thread Daniel Walker
A little feature addition to allow checkpatch.pl to check patches piped into it, in addition to specific file arguments. Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- scripts/checkpatch.pl | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) Index: linux-2.6.23/scripts

Re: [RFC PATCH 22/22 -v2] Trace irq disabled critical timings

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: > + /* Don't trace irqs off for idle */ > + stop_critical_timings(); > idle(); > + start_critical_timings(); Is there another way to hook into the

Re: [RFC PATCH 20/22 -v2] Add latency_trace format tor tracer

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: > +enum trace_flag_type { > + TRACE_FLAG_IRQS_OFF = 0x01, > + TRACE_FLAG_NEED_RESCHED = 0x02, > + TRACE_FLAG_NEED_RESCHED_DELAYED = 0x04, > + TRACE_FLAG_HARDIRQ = 0x08, > +

Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: > +cycle_t notrace get_monotonic_cycles(void) > +{ > + cycle_t cycle_now, cycle_delta, cycle_raw, cycle_last; > + > + do { > + /* > +* cycle_raw and cycle_last can change on > +*

Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: +cycle_t notrace get_monotonic_cycles(void) +{ + cycle_t cycle_now, cycle_delta, cycle_raw, cycle_last; + + do { + /* +* cycle_raw and cycle_last can change on +* another CPU

Re: [RFC PATCH 20/22 -v2] Add latency_trace format tor tracer

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: +enum trace_flag_type { + TRACE_FLAG_IRQS_OFF = 0x01, + TRACE_FLAG_NEED_RESCHED = 0x02, + TRACE_FLAG_NEED_RESCHED_DELAYED = 0x04, + TRACE_FLAG_HARDIRQ = 0x08, +

Re: [RFC PATCH 22/22 -v2] Trace irq disabled critical timings

2008-01-09 Thread Daniel Walker
On Wed, 2008-01-09 at 18:29 -0500, Steven Rostedt wrote: + /* Don't trace irqs off for idle */ + stop_critical_timings(); idle(); + start_critical_timings(); Is there another way to hook into the idle

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 16:14 -0500, Theodore Tso wrote: > On Tue, Jan 08, 2008 at 12:19:44PM -0800, Daniel Walker wrote: > > > But is discourage the creation of pure clean-up patches because it > > > may have a disturbing effect on several other peoples work. > > &g

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 20:21 +0100, Sam Ravnborg wrote: > But is discourage the creation of pure clean-up patches because it > may have a disturbing effect on several other peoples work. pure clean ups are _good_ patches , are they not? Daniel -- To unsubscribe from this list: send the line

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 13:20 -0500, Theodore Tso wrote: > On Tue, Jan 08, 2008 at 10:01:19AM -0800, Daniel Walker wrote: > > > It is a simple pain/benefit issue. > > > Fixing the 25 errors and 13 warnings in kernel/profile.c may look > > > like an easy task but

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 18:53 +0100, Sam Ravnborg wrote: > On Tue, Jan 08, 2008 at 08:50:33AM -0800, Daniel Walker wrote: > > > > On Tue, 2008-01-08 at 17:14 +0100, Andi Kleen wrote: > > > > > > > +if ($file) { > > > + print < > > +WARNING:

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 17:14 +0100, Andi Kleen wrote: > +if ($file) { > + print < +WARNING: Using --file mode. Please do not send patches to linux-kernel > +that change whole existing files if you did not significantly change most > +of the the file for other reasons anyways or just wrote

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 17:14 +0100, Andi Kleen wrote: +if ($file) { + print EOL +WARNING: Using --file mode. Please do not send patches to linux-kernel +that change whole existing files if you did not significantly change most +of the the file for other reasons anyways or just wrote the

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 18:53 +0100, Sam Ravnborg wrote: On Tue, Jan 08, 2008 at 08:50:33AM -0800, Daniel Walker wrote: On Tue, 2008-01-08 at 17:14 +0100, Andi Kleen wrote: +if ($file) { + print EOL +WARNING: Using --file mode. Please do not send patches to linux-kernel

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 13:20 -0500, Theodore Tso wrote: On Tue, Jan 08, 2008 at 10:01:19AM -0800, Daniel Walker wrote: It is a simple pain/benefit issue. Fixing the 25 errors and 13 warnings in kernel/profile.c may look like an easy task but then we put additional burden on the 10 people

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 20:21 +0100, Sam Ravnborg wrote: But is discourage the creation of pure clean-up patches because it may have a disturbing effect on several other peoples work. pure clean ups are _good_ patches , are they not? Daniel -- To unsubscribe from this list: send the line

Re: [PATCH] Deprecate checkpatch.pl --file

2008-01-08 Thread Daniel Walker
On Tue, 2008-01-08 at 16:14 -0500, Theodore Tso wrote: On Tue, Jan 08, 2008 at 12:19:44PM -0800, Daniel Walker wrote: But is discourage the creation of pure clean-up patches because it may have a disturbing effect on several other peoples work. pure clean ups are _good_ patches

Re: [RFC PATCH 01/11] Add basic support for gcc profiler instrumentation

2008-01-03 Thread Daniel Walker
On Thu, 2008-01-03 at 02:16 -0500, Steven Rostedt wrote: > Index: linux-compile.git/Makefile > === > --- linux-compile.git.orig/Makefile 2008-01-03 01:02:28.0 -0500 > +++ linux-compile.git/Makefile 2008-01-03

Re: [RFC PATCH 01/11] Add basic support for gcc profiler instrumentation

2008-01-03 Thread Daniel Walker
On Thu, 2008-01-03 at 02:16 -0500, Steven Rostedt wrote: Index: linux-compile.git/Makefile === --- linux-compile.git.orig/Makefile 2008-01-03 01:02:28.0 -0500 +++ linux-compile.git/Makefile 2008-01-03

Re: [BUG 2.6.24-rc6-mm1] BUG() at check_irqs_on() in fs/buffer.c .

2007-12-25 Thread Daniel Walker
On Sun, 2007-12-23 at 16:16 +0100, Ingo Molnar wrote: > * Tetsuo Handa <[EMAIL PROTECTED]> wrote: > > > Hello. > > > > I encountered a BUG(). > > I didn't encounter this bug for 2.6.24-rc5-mm1 . > > I guess this bug was introduced between 2.6.24-rc5-mm1 and 2.6.24-rc6-mm1 . > > does the patch

Re: [BUG 2.6.24-rc6-mm1] BUG() at check_irqs_on() in fs/buffer.c .

2007-12-25 Thread Daniel Walker
On Sun, 2007-12-23 at 16:16 +0100, Ingo Molnar wrote: * Tetsuo Handa [EMAIL PROTECTED] wrote: Hello. I encountered a BUG(). I didn't encounter this bug for 2.6.24-rc5-mm1 . I guess this bug was introduced between 2.6.24-rc5-mm1 and 2.6.24-rc6-mm1 . does the patch below help? I

Re: [PATCH 4/4] usb: libusual: locking cleanup

2007-12-24 Thread Daniel Walker
On Mon, 2007-12-24 at 06:12 -0800, Pete Zaitcev wrote: > On Sun, 23 Dec 2007 08:46:37 -0800, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > I noticed you also have a spinlock held in usu_probe_thread(), the > > usu_lock.. That spinlock would preclude anything inside r

Re: [PATCH 4/4] usb: libusual: locking cleanup

2007-12-24 Thread Daniel Walker
On Mon, 2007-12-24 at 06:12 -0800, Pete Zaitcev wrote: On Sun, 23 Dec 2007 08:46:37 -0800, Daniel Walker [EMAIL PROTECTED] wrote: I noticed you also have a spinlock held in usu_probe_thread(), the usu_lock.. That spinlock would preclude anything inside request_module() from sleeping

Re: [PATCH 4/4] usb: libusual: locking cleanup

2007-12-23 Thread Daniel Walker
On Sat, 2007-12-22 at 23:37 -0800, Pete Zaitcev wrote: > On Sat, 22 Dec 2007 09:01:50 -0800, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > Then in usu_probe_thread() your basically stopping it at the start of > > the function with a down(), and the up() is just ancil

Re: [PATCH 4/4] usb: libusual: locking cleanup

2007-12-23 Thread Daniel Walker
On Sat, 2007-12-22 at 23:37 -0800, Pete Zaitcev wrote: On Sat, 22 Dec 2007 09:01:50 -0800, Daniel Walker [EMAIL PROTECTED] wrote: Then in usu_probe_thread() your basically stopping it at the start of the function with a down(), and the up() is just ancillary .. So you could easily move

Re: [PATCH 4/4] usb: libusual: locking cleanup

2007-12-22 Thread Daniel Walker
On Fri, 2007-12-21 at 22:24 -0800, Pete Zaitcev wrote: > When I tried it, usb-storage would not load with unresolved symbols. > It happens if child (usu_probe_thread) runs ahead of its parent > (usb_usual_init -> usb_register -> usu_probe). It's entirely possible, > depending on your scheduler. >

Re: [PATCH 4/4] usb: libusual: locking cleanup

2007-12-22 Thread Daniel Walker
On Fri, 2007-12-21 at 22:24 -0800, Pete Zaitcev wrote: When I tried it, usb-storage would not load with unresolved symbols. It happens if child (usu_probe_thread) runs ahead of its parent (usb_usual_init - usb_register - usu_probe). It's entirely possible, depending on your scheduler. I

[PATCH 4/4] usb: libusual: locking cleanup

2007-12-21 Thread Daniel Walker
I converted the usu_init_notify semaphore to normal mutex usage, and it should still prevent the request_module before the init routine is complete. Before it acted more like a complete, now the mutex protects two distinct section from running at the same time.. Signed-off-by: Daniel Walker

[PATCH 1/4] usb microtek: remove unused semaphore

2007-12-21 Thread Daniel Walker
No current references, so removing it. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/usb/image/microtek.c |1 - drivers/usb/image/microtek.h |1 - 2 files changed, 2 deletions(-) Index: linux-2.6.23/drivers/usb/image/micr

[PATCH 3/4] docs: convert kref semaphore to mutex

2007-12-21 Thread Daniel Walker
Just converting this documentation semaphore reference, since we don't want to promote semaphore usage. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- Documentation/kref.txt | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) Index: linux-2.6.23/Documen

[PATCH 2/4] prism54: remove questionable down_interruptible usage

2007-12-21 Thread Daniel Walker
-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/net/wireless/prism54/isl_ioctl.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) Index: linux-2.6.23/drivers/net/wireless/prism54/isl_ioctl.c === --- linux-2.6.2

[PATCH 1/4] usb microtek: remove unused semaphore

2007-12-21 Thread Daniel Walker
No current references, so removing it. Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- drivers/usb/image/microtek.c |1 - drivers/usb/image/microtek.h |1 - 2 files changed, 2 deletions(-) Index: linux-2.6.23/drivers/usb/image/microtek.c

[PATCH 3/4] docs: convert kref semaphore to mutex

2007-12-21 Thread Daniel Walker
Just converting this documentation semaphore reference, since we don't want to promote semaphore usage. Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- Documentation/kref.txt | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) Index: linux-2.6.23/Documentation

[PATCH 2/4] prism54: remove questionable down_interruptible usage

2007-12-21 Thread Daniel Walker
-by: Daniel Walker [EMAIL PROTECTED] --- drivers/net/wireless/prism54/isl_ioctl.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) Index: linux-2.6.23/drivers/net/wireless/prism54/isl_ioctl.c === --- linux-2.6.23.orig

[PATCH 4/4] usb: libusual: locking cleanup

2007-12-21 Thread Daniel Walker
I converted the usu_init_notify semaphore to normal mutex usage, and it should still prevent the request_module before the init routine is complete. Before it acted more like a complete, now the mutex protects two distinct section from running at the same time.. Signed-off-by: Daniel Walker

Re: [PATCH 1/3] ps3: vuart: fix error path locking

2007-12-20 Thread Daniel Walker
On Thu, 2007-12-20 at 12:06 -0800, Andrew Morton wrote: > On Thu, 20 Dec 2007 11:32:25 -0800 Daniel Walker <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-12-18 at 19:04 -0800, Geoff Levand wrote: > > > > > Unfortunately there wasn't enough context in the patch

Re: [PATCH 1/3] ps3: vuart: fix error path locking

2007-12-20 Thread Daniel Walker
On Tue, 2007-12-18 at 19:04 -0800, Geoff Levand wrote: > Unfortunately there wasn't enough context in the patch to see > that there is a down() earlier in the routine, and that the patch > does indeed remove an incorrectly placed down(). Here is the > entire routine, marked with what the patch

Re: [PATCH 1/3] ps3: vuart: fix error path locking

2007-12-20 Thread Daniel Walker
On Tue, 2007-12-18 at 19:04 -0800, Geoff Levand wrote: Unfortunately there wasn't enough context in the patch to see that there is a down() earlier in the routine, and that the patch does indeed remove an incorrectly placed down(). Here is the entire routine, marked with what the patch

Re: [PATCH 1/3] ps3: vuart: fix error path locking

2007-12-20 Thread Daniel Walker
On Thu, 2007-12-20 at 12:06 -0800, Andrew Morton wrote: On Thu, 20 Dec 2007 11:32:25 -0800 Daniel Walker [EMAIL PROTECTED] wrote: On Tue, 2007-12-18 at 19:04 -0800, Geoff Levand wrote: Unfortunately there wasn't enough context in the patch to see that there is a down() earlier

Re: 2.6.24-rc5-mm1 -- inconsistent {in-hardirq-W} -> {hardirq-on-W} usage -- pm-hibernate/9940 [HC0[0]:SC0[0]:HE1:SE1]

2007-12-19 Thread Daniel Walker
On Wed, 2007-12-19 at 10:42 -0800, Daniel Walker wrote: > On Wed, 2007-12-19 at 10:06 -0500, Miles Lane wrote: > > [ 11.827653] PM: Creating hibernation image: > > [ 11.827658] WARNING: at arch/x86/kernel/smp_32.c:561 > > native_smp_call_function_mask() > > [ 11.

Re: 2.6.24-rc5-mm1 -- inconsistent {in-hardirq-W} -> {hardirq-on-W} usage -- pm-hibernate/9940 [HC0[0]:SC0[0]:HE1:SE1]

2007-12-19 Thread Daniel Walker
On Wed, 2007-12-19 at 10:06 -0500, Miles Lane wrote: > [ 11.827653] PM: Creating hibernation image: > [ 11.827658] WARNING: at arch/x86/kernel/smp_32.c:561 > native_smp_call_function_mask() > [ 11.827661] Pid: 9940, comm: pm-hibernate Not tainted > 2.6.24-rc5-mm1 #8 > [ 11.827665] []

Re: 2.6.24-rc5-mm1 -- inconsistent {in-hardirq-W} - {hardirq-on-W} usage -- pm-hibernate/9940 [HC0[0]:SC0[0]:HE1:SE1]

2007-12-19 Thread Daniel Walker
On Wed, 2007-12-19 at 10:06 -0500, Miles Lane wrote: [ 11.827653] PM: Creating hibernation image: [ 11.827658] WARNING: at arch/x86/kernel/smp_32.c:561 native_smp_call_function_mask() [ 11.827661] Pid: 9940, comm: pm-hibernate Not tainted 2.6.24-rc5-mm1 #8 [ 11.827665] [c0107d55]

Re: 2.6.24-rc5-mm1 -- inconsistent {in-hardirq-W} - {hardirq-on-W} usage -- pm-hibernate/9940 [HC0[0]:SC0[0]:HE1:SE1]

2007-12-19 Thread Daniel Walker
On Wed, 2007-12-19 at 10:42 -0800, Daniel Walker wrote: On Wed, 2007-12-19 at 10:06 -0500, Miles Lane wrote: [ 11.827653] PM: Creating hibernation image: [ 11.827658] WARNING: at arch/x86/kernel/smp_32.c:561 native_smp_call_function_mask() [ 11.827661] Pid: 9940, comm: pm-hibernate

Re: [PATCH 1/3] ps3: vuart: fix error path locking

2007-12-18 Thread Daniel Walker
On Tue, 2007-12-18 at 17:10 -0800, Andrew Morton wrote: > is correct. Although not exactly a thing of beauty. This isn't the worst I've seen ;( .. Do you think the ending should fall through instead of having two returns? Daniel -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 1/3] ps3: vuart: fix error path locking

2007-12-18 Thread Daniel Walker
On Tue, 2007-12-18 at 17:10 -0800, Andrew Morton wrote: is correct. Although not exactly a thing of beauty. This isn't the worst I've seen ;( .. Do you think the ending should fall through instead of having two returns? Daniel -- To unsubscribe from this list: send the line unsubscribe

[PATCH 2/2] [RESEND] driver base: memory: semaphore to mutex

2007-12-16 Thread Daniel Walker
Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/base/memory.c |7 --- include/linux/memory.h |5 ++--- mm/memory_hotplug.c|2 +- 3 files changed, 7 insertions(+), 7 deletions(-) Index: linux-2.6.23/drivers/base/me

[PATCH 1/2] [RESEND] ps3: vuart: fix error path locking

2007-12-16 Thread Daniel Walker
This stray down would cause a permanent sleep which doesn't seem correct. The other uses of this semaphore appear fairly mutex like it's even initialized with init_MUTEX() .. So here a patch for removing this one down(). Signed-off-by: Geoff Levand <[EMAIL PROTECTED]> Signed-off-by:

[PATCH 2/2] [RESEND] driver base: memory: semaphore to mutex

2007-12-16 Thread Daniel Walker
Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- drivers/base/memory.c |7 --- include/linux/memory.h |5 ++--- mm/memory_hotplug.c|2 +- 3 files changed, 7 insertions(+), 7 deletions(-) Index: linux-2.6.23/drivers/base/memory.c

[PATCH 1/2] [RESEND] ps3: vuart: fix error path locking

2007-12-16 Thread Daniel Walker
This stray down would cause a permanent sleep which doesn't seem correct. The other uses of this semaphore appear fairly mutex like it's even initialized with init_MUTEX() .. So here a patch for removing this one down(). Signed-off-by: Geoff Levand [EMAIL PROTECTED] Signed-off-by: Daniel Walker

Re: [PATCH 3/3] net: wireless: bcm43xx: big_buffer_sem semaphore to mutex

2007-12-12 Thread Daniel Walker
On Thu, 2007-12-13 at 01:48 +0100, Michael Buesch wrote: > On Wednesday 12 December 2007 09:00:03 Daniel Walker wrote: > > > > Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]> > > > > --- > > drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 30 &g

[PATCH 1/3] ps3: vuart: fix error path locking

2007-12-12 Thread Daniel Walker
This stray down would cause a permanent sleep which doesn't seem correct. The other uses of this semaphore appear fairly mutex like it's even initialized with init_MUTEX() .. So here a patch for removing this one down(). Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/p

[PATCH 2/3] driver base: memory: semaphore to mutex

2007-12-12 Thread Daniel Walker
Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/base/memory.c |7 --- include/linux/memory.h |5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) Index: linux-2.6.23/drivers/base/me

[PATCH 3/3] net: wireless: bcm43xx: big_buffer_sem semaphore to mutex

2007-12-12 Thread Daniel Walker
Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]> --- drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 30 - 1 file changed, 15 insertions(+), 15 deletions(-) Index: linux-2.6.23/drivers/net/wireless/bcm43xx/bcm43xx_deb

[PATCH -rt] cycles_to_usecs rounding fix

2007-12-12 Thread Daniel Walker
do_div() rounds down, so we add have the divisor to round up. This effected my change to preempt_max_latency. Each time you read preempt_max_latency it gets rounded lower. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- kernel/time/timekeeping.c |3 ++- 1 file changed, 2 inse

[PATCH -rt] Add wakeup timing to expose /proc/preempt_max_latency

2007-12-12 Thread Daniel Walker
Fix my original mistake of using CONFIG_CRITICAL_TIMING , which only covers preempt and irqs-off timing.. Convert to CONFIG_LATENCY_TIMING, so wakeup timing also has these. Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]> --- kernel/sysctl.c |2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH -rt] preempt_max_latency to microseconds

2007-12-12 Thread Daniel Walker
Not to long ago preempt_max_latency was microseconds, and someplace along the way it turned into cycles. That's a bit unintuitive, so I converted it back to microseconds. Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]> --- include/linux/clocksource.h | 12 ++--

[PATCH -rt] preempt_max_latency to microseconds

2007-12-12 Thread Daniel Walker
Not to long ago preempt_max_latency was microseconds, and someplace along the way it turned into cycles. That's a bit unintuitive, so I converted it back to microseconds. Signed-Off-By: Daniel Walker [EMAIL PROTECTED] --- include/linux/clocksource.h | 12 ++-- kernel/latency_trace.c

[PATCH -rt] Add wakeup timing to expose /proc/preempt_max_latency

2007-12-12 Thread Daniel Walker
Fix my original mistake of using CONFIG_CRITICAL_TIMING , which only covers preempt and irqs-off timing.. Convert to CONFIG_LATENCY_TIMING, so wakeup timing also has these. Signed-Off-By: Daniel Walker [EMAIL PROTECTED] --- kernel/sysctl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH -rt] cycles_to_usecs rounding fix

2007-12-12 Thread Daniel Walker
do_div() rounds down, so we add have the divisor to round up. This effected my change to preempt_max_latency. Each time you read preempt_max_latency it gets rounded lower. Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- kernel/time/timekeeping.c |3 ++- 1 file changed, 2 insertions

[PATCH 1/3] ps3: vuart: fix error path locking

2007-12-12 Thread Daniel Walker
This stray down would cause a permanent sleep which doesn't seem correct. The other uses of this semaphore appear fairly mutex like it's even initialized with init_MUTEX() .. So here a patch for removing this one down(). Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- drivers/ps3/ps3

[PATCH 2/3] driver base: memory: semaphore to mutex

2007-12-12 Thread Daniel Walker
Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- drivers/base/memory.c |7 --- include/linux/memory.h |5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) Index: linux-2.6.23/drivers/base/memory.c === --- linux

[PATCH 3/3] net: wireless: bcm43xx: big_buffer_sem semaphore to mutex

2007-12-12 Thread Daniel Walker
Signed-Off-By: Daniel Walker [EMAIL PROTECTED] --- drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 30 - 1 file changed, 15 insertions(+), 15 deletions(-) Index: linux-2.6.23/drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c

Re: [PATCH 3/3] net: wireless: bcm43xx: big_buffer_sem semaphore to mutex

2007-12-12 Thread Daniel Walker
On Thu, 2007-12-13 at 01:48 +0100, Michael Buesch wrote: On Wednesday 12 December 2007 09:00:03 Daniel Walker wrote: Signed-Off-By: Daniel Walker [EMAIL PROTECTED] --- drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 30 - 1 file changed, 15 insertions

[PATCH -mm] media: video: usbvision: add mutex_unlock() to error paths

2007-12-11 Thread Daniel Walker
There are a few error paths which don't unlock the usbvision->lock. So I've added mutex_unlock() calls to fix those paths. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/media/video/usbvision/usbvision-video.c |2 ++ 1 file changed, 2 insertions(+) Index: lin

[PATCH -mm] media: video: usbvision: add mutex_unlock() to error paths

2007-12-11 Thread Daniel Walker
There are a few error paths which don't unlock the usbvision-lock. So I've added mutex_unlock() calls to fix those paths. Signed-off-by: Daniel Walker [EMAIL PROTECTED] --- drivers/media/video/usbvision/usbvision-video.c |2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6.23/drivers

Re: Possible locking issue in viotape.c

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 15:19 -0400, Kevin Winchester wrote: > > Yes, I've used quilt for working with mm patches in the past, but I'm > not too familiar with the mail features. For example, how do you get > the recipient list and Signed-off-by in the patch file? Do you just > edit it by hand?

Re: Possible locking issue in viotape.c

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 14:17 -0400, Kevin Winchester wrote: > Daniel Walker wrote: > > On Thu, 2007-12-06 at 21:29 -0400, Kevin Winchester wrote: > >> Daniel Walker wrote: > >>> I've posted all the ones I've done so far .. > >>> > >>> ft

Re: lockdep problem conversion semaphore->mutex (dev->sem)

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 18:11 +0100, Peter Zijlstra wrote: > > It must be the locking in __driver_attach(), taking dev->parent->sem > > then taking dev->sem .. Assuming those are different structures, why > > does lockdep trigger? > > They aren't different, parent is a struct device again. It's

Re: lockdep problem conversion semaphore->mutex (dev->sem)

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 13:16 +0100, Peter Zijlstra wrote: > On Sat, 2007-12-08 at 00:02 +0100, Remy Bohmer wrote: > > Hello Peter, > > > > > > What specifically is wrong with dev->sem ? > > > > > > Nothing really, other than that they use semaphores to avoid lockdep :-/ > > > > > > I think I know

Re: lockdep problem conversion semaphore-mutex (dev-sem)

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 13:16 +0100, Peter Zijlstra wrote: On Sat, 2007-12-08 at 00:02 +0100, Remy Bohmer wrote: Hello Peter, What specifically is wrong with dev-sem ? Nothing really, other than that they use semaphores to avoid lockdep :-/ I think I know how to annotate this,

Re: lockdep problem conversion semaphore-mutex (dev-sem)

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 18:11 +0100, Peter Zijlstra wrote: It must be the locking in __driver_attach(), taking dev-parent-sem then taking dev-sem .. Assuming those are different structures, why does lockdep trigger? They aren't different, parent is a struct device again. It's different

Re: Possible locking issue in viotape.c

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 14:17 -0400, Kevin Winchester wrote: Daniel Walker wrote: On Thu, 2007-12-06 at 21:29 -0400, Kevin Winchester wrote: Daniel Walker wrote: I've posted all the ones I've done so far .. ftp://source.mvista.com/pub/dwalker/sem2mutex-2.6.24-rc4/ Feel free to review

Re: Possible locking issue in viotape.c

2007-12-08 Thread Daniel Walker
On Sat, 2007-12-08 at 15:19 -0400, Kevin Winchester wrote: Yes, I've used quilt for working with mm patches in the past, but I'm not too familiar with the mail features. For example, how do you get the recipient list and Signed-off-by in the patch file? Do you just edit it by hand? Or is

[PATCH 3/4] mcheck mce_64: mce_read_sem to mutex

2007-12-07 Thread Daniel Walker
Converted to a mutex, and changed the name to mce_read_mutex. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- arch/x86/kernel/cpu/mcheck/mce_64.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6.23/arch/x86/kernel/cpu/mcheck/mc

[PATCH 4/4] md: dm driver: suspend_lock semaphore to mutex

2007-12-07 Thread Daniel Walker
Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/md/dm.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) Index: linux-2.6.23/drivers/md/dm.c === --- linux-2.6.23.orig/drivers/md/dm.c +++

[PATCH 1/4] media: video: usbvision: remove ctrlUrbLock

2007-12-07 Thread Daniel Walker
The ctrlUrbLock has all it's users commented out, and so it's unused. This patch removes it. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> --- drivers/media/video/usbvision/usbvision-core.c |3 --- drivers/media/video/usbvision/usbvision-video.c |1 - drivers/media/video/usb

<    1   2   3   4   5   6   7   8   9   10   >