From: Davidlohr Bueso Date: Fri, 24 Apr 2015 17:00:48 +0000 (-0700) Subject: perf bench futex: Fix hung wakeup tasks after requeueing X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2~28^2~1^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=052b0f6eaf8b1f02669884a177bc3ce463133a42;p=pandora-kernel.git perf bench futex: Fix hung wakeup tasks after requeueing The futex-requeue benchmark can hang because of missing wakeups once the benchmark is done, ie: [Run 1]: Requeued 1024 of 1024 threads in 0.3290 ms perf: couldn't wakeup all tasks (135/1024) This bug, while perhaps suggesting missing wakeups in kernel futex code, is merely a consequence of the crappy FUTEX_CMP_REQUEUE man page, incorrectly mentioning that the number of requeued tasks is in fact returned, not the wakeups. This patch acknowledges this and updates the corresponding futex_wake code around it. Signed-off-by: Davidlohr Bueso Cc: Mel Gorman Link: http://lkml.kernel.org/r/1429894848.10273.44.camel@stgolabs.net Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed