MFC r337376: Implement current_work() function in the LinuxKPI.
Tested by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies