On Sun, 18 Dec 2005, James Bottomley wrote: > > Actually, I don't think you want might_sleep(): there are a few cases > where we do an up() from under a spinlock, which will spuriously trigger > this. I'd suggest WARN_ON(in_interrupt()) instead. Ahh, good point. Yes. However, if even the arm people aren't all that interested in this, maybe it simply doesn't matter. A lot of other architectures either have "decrement in memory" or can already use ll/sc for it. (of course, on some architectures, ll/sc is really really slow, so they might well prefer using a normal load and store instead). Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Linus Torvalds <torvalds@osdl.org>
- [PATCH 0/12]: MUTEX: Introduce mutex implementation
- From: David Howells <dhowells@redhat.com>
- [PATCH 1/12]: MUTEX: Implement mutexes
- From: David Howells <dhowells@redhat.com>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Steven Rostedt <rostedt@goodmis.org>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: David Howells <dhowells@redhat.com>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Nicolas Pitre <nico@cam.org>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Nicolas Pitre <nico@cam.org>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Russell King <rmk+lkml@arm.linux.org.uk>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- From: James Bottomley <James.Bottomley@SteelEye.com>
- Re: [PATCH 1/12]: MUTEX: Implement mutexes
- Prev by Date: Re: [PATCH 13/13] [RFC] ipath Kconfig and Makefile
- Next by Date: Re: [PATCH 10/13] [RFC] ipath verbs, part 1
- Previous by thread: Re: [PATCH 1/12]: MUTEX: Implement mutexes
- Next by thread: Re: [PATCH 1/12]: MUTEX: Implement mutexes
- Index(es):
![]() |