From: Xie XiuQi Date: Tue, 12 Nov 2013 23:11:46 +0000 (-0800) Subject: ipc/util.c: remove unnecessary work pending test X-Git-Tag: v3.13-rc1~106^2~1 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=206fa940977260ede421151aae067e2509356116;p=~andy%2Flinux 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 Cc: Tejun Heo Reviewed-by: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/ipc/util.c b/ipc/util.c index 7684f41bce7..3ae17a4ace5 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -90,10 +90,8 @@ static int ipc_memory_callback(struct notifier_block *self, * In order not to keep the lock on the hotplug memory chain * for too long, queue a work item that will, when waken up, * activate the ipcns notification chain. - * No need to keep several ipc work items on the queue. */ - if (!work_pending(&ipc_memory_wq)) - schedule_work(&ipc_memory_wq); + schedule_work(&ipc_memory_wq); break; case MEM_GOING_ONLINE: case MEM_GOING_OFFLINE: