mm: thp: set the accessed flag for old pages on access fault
[pandora-kernel.git] / drivers / vhost / vhost.c
index c14c42b..ae66278 100644 (file)
@@ -222,6 +222,8 @@ static int vhost_worker(void *data)
                if (work) {
                        __set_current_state(TASK_RUNNING);
                        work->fn(work);
+                       if (need_resched())
+                               schedule();
                } else
                        schedule();