summaryrefslogtreecommitdiff
path: root/cpus.h
AgeCommit message (Expand)AuthorFilesLines
2013-06-12cpus: let it always return an unsigned int and bail out on errorDaniel Borkmann1-4/+16
2013-06-04cpus: break out cpu related functions from xutilsDaniel Borkmann1-0/+16
/diff/?id=303c3be42815c2d12bf563dc0df9daceea1ebfad&id2=8a99a6bd7f410e1b889c8cc59538009f40507aac'>Diffstatcgi/linux/net-next.git/patch/?id=4475aeb8b77db34dea96b09900ba0cb245b6fb42'>patch)
tree942a35fdef5895cc8e29e7633c204271597e9e5b
parent837c5220557270e652d89f68a9fb12a5e72e8a7a (diff)
s390/cio: fix premature wakeup during chp configure
We store requests for channel path configure operations in an array but maintain an additional cfg_busy variable (indicating if we have requests stored in said array). When 2 tasks request a channel path configure operation cfg_busy could be set to 0 even if we still have unprocessed requests. This would lead to the second task being woken up although its request was not processed yet. Fix that by getting rid of cfg_busy and use the chp_cfg_task array in the wake up condition. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat