aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorGuillaume Knispel <[email protected]>2009-08-15 17:30:24 +0000
committerLinus Torvalds <[email protected]>2009-08-16 01:40:11 +0000
commitb2add73dbf93fd50f00564d7abc3e2b9aa9dd20c (patch)
treec9da78bdbdcfb29d5fc1ac3a967d75911fc5d6b4 /lib/bitmap.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes (diff)
downloadkernel-b2add73dbf93fd50f00564d7abc3e2b9aa9dd20c.tar.gz
kernel-b2add73dbf93fd50f00564d7abc3e2b9aa9dd20c.zip
poll/select: initialize triggered field of struct poll_wqueues
The triggered field of struct poll_wqueues introduced in commit 5f820f648c92a5ecc771a96b3c29aa6e90013bba ("poll: allow f_op->poll to sleep"). It was first set to 1 in pollwake() (now __pollwake() ), tested and later set to 0 in poll_schedule_timeout(), but not initialized before. As a result when the process needs to sleep, triggered was likely to be non-zero even if pollwake() is not called before the first poll_schedule_timeout(), meaning schedule_hrtimeout_range() would not be called and an extra loop calling all ->poll() would be done. This patch initialize triggered to 0 in poll_initwait() so the ->poll() are not called twice before the process goes to sleep when it needs to. Signed-off-by: Guillaume Knispel <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: [email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions