diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2007-05-09 02:33:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-09 12:30:51 -0700 |
commit | 83c22520c51bf67529367e8237f95c03fe44e2da (patch) | |
tree | d9798e4f60551bdad0f7d8f1f1d5c69d7c4214c1 /fs/aio.c | |
parent | edab2516a6c1752e8e5e3d55727cabf12346e5df (diff) |
flush_cpu_workqueue: don't flush an empty ->worklist
Now when we have ->current_work we can avoid adding a barrier and waiting
for its completition when cwq's queue is empty.
Note: this change is also useful if we change flush_workqueue() to also
check the dead CPUs.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Cc: Gautham Shenoy <ego@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/aio.c')
0 files changed, 0 insertions, 0 deletions