s390/cio: add cond_resched() in the slow_eval_known_fn() loop
authorVineeth Vijayan <vneethv@linux.ibm.com>
Thu, 18 Jun 2020 14:42:45 +0000 (16:42 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 17 Aug 2020 11:17:00 +0000 (13:17 +0200)
commit0b8eb2ee9da1e8c9b8082f404f3948aa82a057b2
tree51ace6d3133d2649737b44d9e35e1ba7d5ffd580
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
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: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/css.c