Skip to content

Commit 206fa94

Browse files
Xie XiuQitorvalds
authored andcommitted
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>
1 parent 66da0e1 commit 206fa94

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ipc/util.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ static int ipc_memory_callback(struct notifier_block *self,
9090
* In order not to keep the lock on the hotplug memory chain
9191
* for too long, queue a work item that will, when waken up,
9292
* activate the ipcns notification chain.
93-
* No need to keep several ipc work items on the queue.
9493
*/
95-
if (!work_pending(&ipc_memory_wq))
96-
schedule_work(&ipc_memory_wq);
94+
schedule_work(&ipc_memory_wq);
9795
break;
9896
case MEM_GOING_ONLINE:
9997
case MEM_GOING_OFFLINE:

0 commit comments

Comments
 (0)