1
linux/include
Oleg Nesterov 1f1f642e2f make cancel_xxx_work_sync() return a boolean
Change cancel_work_sync() and cancel_delayed_work_sync() to return a boolean
indicating whether the work was actually cancelled.  A zero return value means
that the work was not pending/queued.

Without that kind of change it is not possible to avoid flush_workqueue()
sometimes, see the next patch as an example.

Also, this patch unifies both functions and kills the (unlikely) busy-wait
loop.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Jarek Poplawski <jarkao2@o2.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:51 -07:00
..
acpi
asm-alpha fix alpha ISA support 2007-07-16 09:05:37 -07:00
asm-arm
asm-arm26 dma-mapping: prevent dma dependent code from linking on !HAS_DMA archs 2007-07-16 09:05:45 -07:00
asm-avr32
asm-blackfin
asm-cris etrax: enable arbitary speed setting on tty ports 2007-07-16 09:05:38 -07:00
asm-frv FRV: Connect up new syscalls 2007-07-16 09:05:37 -07:00
asm-generic Introduce O_CLOEXEC 2007-07-16 09:05:45 -07:00
asm-h8300 dma-mapping: prevent dma dependent code from linking on !HAS_DMA archs 2007-07-16 09:05:45 -07:00
asm-i386 make seccomp zerocost in schedule 2007-07-16 09:05:50 -07:00
asm-ia64 Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
asm-m32r dma-mapping: prevent dma dependent code from linking on !HAS_DMA archs 2007-07-16 09:05:45 -07:00
asm-m68k
asm-m68knommu
asm-mips Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
asm-parisc Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
asm-powerpc Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
asm-ppc
asm-s390 Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
asm-sh
asm-sh64
asm-sparc
asm-sparc64 Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
asm-um Add generic exit-time stack-depth checking to CONFIG_DEBUG_STACK_USAGE 2007-07-16 09:05:38 -07:00
asm-v850 v850: enable arbitary speed tty ioctls 2007-07-16 09:05:39 -07:00
asm-x86_64 Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
asm-xtensa
crypto
keys
linux make cancel_xxx_work_sync() return a boolean 2007-07-16 09:05:51 -07:00
math-emu
media
mtd
net
pcmcia
rdma
rxrpc
scsi
sound
video
Kbuild