commit | 91cf5ab60ff82ecf4550a596867787c1e360dd3f | [log] [tgz] |
---|---|---|
author | Eric Dumazet <[email protected]> | Wed Sep 11 14:24:06 2013 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Sep 11 15:58:50 2013 -0700 |
tree | bcfba2f74873abc7c59fc2d3c4e5ae27ad4386f7 | |
parent | 8716de383b82f16d920513138f1691e40ef5a9e3 [diff] |
epoll: add a reschedule point in ep_free() ep_free() might iterate on a huge set of epitems and hold cpu too long. Add two cond_resched() in order to yield cpu to other tasks. This is safe as we only hold mutexes in this function. Signed-off-by: Eric Dumazet <[email protected]> Cc: Al Viro <[email protected]> Cc: Theodore Ts'o <[email protected]> Acked-by: Eric Wong <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>