Prepare code to plug the overcommit notification.
authorPierre Habouzit <pierre.habouzit@intersec.com>
Sun, 15 Jan 2012 07:51:17 +0000 (08:51 +0100)
committerPierre Habouzit <pierre.habouzit@intersec.com>
Sun, 15 Jan 2012 08:00:23 +0000 (09:00 +0100)
commitc7cabb18799090c303666bab78827bc64ca2594e
treea7ce6ea9fc5d76fc5deb847dcec552c63ff00366
parent4d4f64ffd9acc95b7c4f816a537d2c1dff8df367
Prepare code to plug the overcommit notification.

Let the pwqr_sb have a state (instead of yes/no "dead" flag) being among:
- DEAD
- NONE (normal)
- UC (undercommit)
- OC (overcommit).

In the last two modes a timer is fired.

In the UC case, if the timer fires, we unpark a thread (if any, and if no
overcommit unpark is pending) as before.

In the OC case for now we do nothing.

Signed-off-by: Pierre Habouzit <pierre.habouzit@intersec.com>
kernel/pwqr.c