diff options
author | Xie XiuQi <xiexiuqi@huawei.com> | 2013-11-12 18:11:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:36 -0500 |
commit | 206fa940977260ede421151aae067e2509356116 (patch) | |
tree | 07322ef889d492cf1cfea0ca0a36c86d6e30b026 /ipc | |
parent | 66da0e1f9034140ae2f571ef96e254a25083906c (diff) |
ipc/util.c: remove unnecessary work pending test
Remove unnecessary work pending test before calling schedule_work(). It
has been tested in queue_work_on() already. No functional changed.
Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Cc: Tejun Heo <tj@kernel.org>
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipc/util.c b/ipc/util.c index 7684f41bce76..3ae17a4ace5b 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -90,10 +90,8 @@ static int ipc_memory_callback(struct notifier_block *self, | |||
90 | * In order not to keep the lock on the hotplug memory chain | 90 | * In order not to keep the lock on the hotplug memory chain |
91 | * for too long, queue a work item that will, when waken up, | 91 | * for too long, queue a work item that will, when waken up, |
92 | * activate the ipcns notification chain. | 92 | * activate the ipcns notification chain. |
93 | * No need to keep several ipc work items on the queue. | ||
94 | */ | 93 | */ |
95 | if (!work_pending(&ipc_memory_wq)) | 94 | schedule_work(&ipc_memory_wq); |
96 | schedule_work(&ipc_memory_wq); | ||
97 | break; | 95 | break; |
98 | case MEM_GOING_ONLINE: | 96 | case MEM_GOING_ONLINE: |
99 | case MEM_GOING_OFFLINE: | 97 | case MEM_GOING_OFFLINE: |