瀏覽代碼

dlm: replace schedule with cond_resched

This is a one-liner to use cond_resched() rather than schedule()
in the ast delivery loop. It should not be necessary to schedule
every time, so this will save some cpu time while continuing to
allow scheduling when required.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Steven Whitehouse 16 年之前
父節點
當前提交
d61e9aac96
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/dlm/ast.c

+ 1 - 1
fs/dlm/ast.c

@@ -101,7 +101,7 @@ static void process_asts(void)
 		   and may result in the lkb being freed */
 		   and may result in the lkb being freed */
 		dlm_put_lkb(lkb);
 		dlm_put_lkb(lkb);
 
 
-		schedule();
+		cond_resched();
 	}
 	}
 }
 }