ipc/sem.c: cleanup
cover ipc/sem.c: cleanup
I did some cleanup in ipc/sem:
- ipc/sem contained hand-written linked lists, they can be replaced with standard list_head lists.
- the locking was written before CLONE_SYSVSEM was introduced, with ulp->lock, it's now possible to free undo structures during IPC_RMID immediately.
- There is a (extremely unlikely) race in semtimedop(), it can access kfree'd memory.
The patches pass my own simple test cases, what do you think?
--
Manfred