On Wed, 6 Dec 2006, Linus Torvalds wrote: > > Gcc should do it for us, afaik. I didn't check, but gcc is generally > pretty good at combining logical operations like this, because it's very > common. Sadly, gcc doesn't do it in this case. Still, I'd rather keep the source clean, and hope that the compiler improves eventually, than to make the code uglier. I replaced both of the "test_bit(WORK_STRUCT_PENDING, &work->management)" with "work_pending(work)" in my tree. Now somebody who knows how to trigger this thing should just _test_ it. 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/
- Follow-Ups:
- Re: [PATCH] Export current_is_keventd() for libphy
- From: David Howells <dhowells@redhat.com>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- References:
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Linus Torvalds <torvalds@osdl.org>
- [PATCH] Export current_is_keventd() for libphy
- From: Ben Collins <ben.collins@ubuntu.com>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: "Maciej W. Rozycki" <macro@linux-mips.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Andy Fleming <afleming@freescale.com>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Roland Dreier <rdreier@cisco.com>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: "Maciej W. Rozycki" <macro@linux-mips.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: David Howells <dhowells@redhat.com>
- Re: [PATCH] Export current_is_keventd() for libphy
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH] Export current_is_keventd() for libphy
- Prev by Date: [PATCH] WorkStruct: Implement generic UP cmpxchg() where an arch doesn't support it [try #2]
- Next by Date: Re: Change x86 prefix order
- Previous by thread: Re: [PATCH] Export current_is_keventd() for libphy
- Next by thread: Re: [PATCH] Export current_is_keventd() for libphy
- Index(es):
![]() |