Commit 225b2cb6 authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

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: default avatarMatthew Sakai <msakai@redhat.com>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 487767bf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -252,7 +252,6 @@ static void service_work_queue(struct simple_work_queue *queue)
		 * This speeds up some performance tests; that "other work" might include other VDO
		 * threads.
		 */
		if (need_resched())
		cond_resched();
	}