]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ioc4: use static work_struct for ioc4_load_modules()
authorTejun Heo <tj@kernel.org>
Fri, 24 Dec 2010 15:14:20 +0000 (16:14 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 24 Dec 2010 15:14:20 +0000 (16:14 +0100)
commit883624a08cb4144343e7362d9fff0e2c69613ebf
tree9c2ba7c942e76d2b333ec9853f293ef5bfac5ca3
parentee4569a3a75e1a5ed53b0c4ff4d9fc456aa98ef1
ioc4: use static work_struct for ioc4_load_modules()

There is no reason to dynamically allocate work_struct for
ioc4_load_modules().  It makes the code more complex and makes it
impossible to flush the work directly.  Use static work
ioc4_load_modules_work instead and flush it directly on exit.

This removes the use of flush_scheduled_work() which is being
deprecated.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Brent Casavant <bcasavan@sgi.com>
drivers/misc/ioc4.c