Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux-block.git] / drivers / vhost / vhost.c
index 10bf35a3db6e2023068b325435cc03bdefdbff8a..a92af08e786450640b2bb6fa848810dec402fcbb 100644 (file)
@@ -361,8 +361,7 @@ static int vhost_worker(void *data)
                        kcov_remote_start_common(worker->kcov_handle);
                        work->fn(work);
                        kcov_remote_stop();
-                       if (need_resched())
-                               schedule();
+                       cond_resched();
                }
        }