s390/cio: add cond_resched() in the slow_eval_known_fn() loop
The scanning through subchannels during the time of an event could take significant amount of time in case of platforms with lots of known subchannels. This might result in higher scheduling latencies for other tasks especially on systems with a single CPU. Add cond_resched() call, as the loop in slow_eval_known_fn() can be executed for a longer duration. Reviewed-by: NPeter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: NVineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: NHeiko Carstens <hca@linux.ibm.com>
Showing
想要评论请 注册 或 登录