aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/util.c')
-rw-r--r--ipc/util.c4
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: