]> Pileus Git - ~andy/linux/blobdiff - ipc/util.c
ipc/util.c: remove unnecessary work pending test
[~andy/linux] / ipc / util.c
index 7684f41bce76a9b430f04b7e4e77810b48798a42..3ae17a4ace5b9ba242fd1aa42543d64145e5cb7f 100644 (file)
@@ -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: