Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vdo: omit need_resched() before cond_resched()

There's no need to call need_resched() because cond_resched() will do
nothing if need_resched() returns false.

Reviewed-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

+1 -2
+1 -2
drivers/md/dm-vdo/funnel-workqueue.c
··· 252 252 * This speeds up some performance tests; that "other work" might include other VDO 253 253 * threads. 254 254 */ 255 - if (need_resched()) 256 - cond_resched(); 255 + cond_resched(); 257 256 } 258 257 259 258 run_finish_hook(queue);