]> git.baikalelectronics.ru Git - kernel.git/commit
afs: add afs_wq and use it instead of the system workqueue
authorTejun Heo <tj@kernel.org>
Fri, 14 Jan 2011 15:56:37 +0000 (15:56 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 17:25:11 +0000 (09:25 -0800)
commit17183af6fc870e18ed1f92d33ec24d94f5277d4a
tree6f24c2d7b0a7554842544e51bd8e52159086669e
parent1d23962d7c140afed343d8af5d740a22da46cbb5
afs: add afs_wq and use it instead of the system workqueue

flush_scheduled_work() is going away.  afs needs to make sure all the
works it has queued have finished before being unloaded and there can
be arbitrary number of pending works.  Add afs_wq and use it as the
flush domain instead of the system workqueue.

Also, convert cancel_delayed_work() + flush_scheduled_work() to
cancel_delayed_work_sync() in afs_mntpt_kill_timer().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: linux-afs@lists.infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/cmservice.c
fs/afs/internal.h
fs/afs/main.c
fs/afs/mntpt.c
fs/afs/rxrpc.c
fs/afs/server.c
fs/afs/vlocation.c