run_scheduled_work — run scheduled work synchronously
int fastcall run_scheduled_work ( | struct work_struct * | work) ; |
This checks if the work was pending, and runs it synchronously if so. It returns a boolean to indicate whether it had any scheduled work to run or not.
NOTE! This _only_ works for normal work_structs. You CANNOT use this for delayed work, because the wq data for delayed work will not point properly to the per- CPU workqueue struct, but will change!