SLOW_WORK: Add support for cancellation of slow work
authorJens Axboe <jens.axboe@oracle.com>
Thu, 19 Nov 2009 18:10:43 +0000 (18:10 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 19 Nov 2009 18:10:43 +0000 (18:10 +0000)
commit0160950297c08f8233c89b9f9e7dd59cfb080809
tree4910bfb7ab5b4000a1679fd165d217ff48226268
parent4d8bb2cbccf6dccaada509aafeb01c6205c9d8c4
SLOW_WORK: Add support for cancellation of slow work

Add support for cancellation of queued slow work and delayed slow work items.
The cancellation functions will wait for items that are pending or undergoing
execution to be discarded by the slow work facility.

Attempting to enqueue work that is in the process of being cancelled will
result in ECANCELED.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/slow-work.txt
include/linux/slow-work.h
kernel/slow-work.c