diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 16:00:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 16:00:36 -0500 |
commit | 78a45c6f067824cf5d0a9fedea7339ac2e28603c (patch) | |
tree | b4f78c8b6b9059ddace0a18c11629b8d2045f793 /ipc/util.c | |
parent | f96fe225677b3efb74346ebd56fafe3997b02afa (diff) | |
parent | 29d293b6007b91a4463f05bc8d0b26e0e65c5816 (diff) |
Merge branch 'akpm' (second patch-bomb from Andrew)
Merge second patchbomb from Andrew Morton:
- the rest of MM
- misc fs fixes
- add execveat() syscall
- new ratelimit feature for fault-injection
- decompressor updates
- ipc/ updates
- fallocate feature creep
- fsnotify cleanups
- a few other misc things
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (99 commits)
cgroups: Documentation: fix trivial typos and wrong paragraph numberings
parisc: percpu: update comments referring to __get_cpu_var
percpu: update local_ops.txt to reflect this_cpu operations
percpu: remove __get_cpu_var and __raw_get_cpu_var macros
fsnotify: remove destroy_list from fsnotify_mark
fsnotify: unify inode and mount marks handling
fallocate: create FAN_MODIFY and IN_MODIFY events
mm/cma: make kmemleak ignore CMA regions
slub: fix cpuset check in get_any_partial
slab: fix cpuset check in fallback_alloc
shmdt: use i_size_read() instead of ->i_size
ipc/shm.c: fix overly aggressive shmdt() when calls span multiple segments
ipc/msg: increase MSGMNI, remove scaling
ipc/sem.c: increase SEMMSL, SEMMNI, SEMOPM
ipc/sem.c: change memory barrier in sem_lock() to smp_rmb()
lib/decompress.c: consistency of compress formats for kernel image
decompress_bunzip2: off by one in get_next_block()
usr/Kconfig: make initrd compression algorithm selection not expert
fault-inject: add ratelimit option
ratelimit: add initialization macro
...
Diffstat (limited to 'ipc/util.c')
-rw-r--r-- | ipc/util.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ipc/util.c b/ipc/util.c index 88adc329888c..106bed0378ab 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -71,44 +71,6 @@ struct ipc_proc_iface { | |||
71 | int (*show)(struct seq_file *, void *); | 71 | int (*show)(struct seq_file *, void *); |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static void ipc_memory_notifier(struct work_struct *work) | ||
75 | { | ||
76 | ipcns_notify(IPCNS_MEMCHANGED); | ||
77 | } | ||
78 | |||
79 | static int ipc_memory_callback(struct notifier_block *self, | ||
80 | unsigned long action, void *arg) | ||
81 | { | ||
82 | static DECLARE_WORK(ipc_memory_wq, ipc_memory_notifier); | ||
83 | |||
84 | switch (action) { | ||
85 | case MEM_ONLINE: /* memory successfully brought online */ | ||
86 | case MEM_OFFLINE: /* or offline: it's time to recompute msgmni */ | ||
87 | /* | ||
88 | * This is done by invoking the ipcns notifier chain with the | ||
89 | * IPC_MEMCHANGED event. | ||
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, | ||
92 | * activate the ipcns notification chain. | ||
93 | */ | ||
94 | schedule_work(&ipc_memory_wq); | ||
95 | break; | ||
96 | case MEM_GOING_ONLINE: | ||
97 | case MEM_GOING_OFFLINE: | ||
98 | case MEM_CANCEL_ONLINE: | ||
99 | case MEM_CANCEL_OFFLINE: | ||
100 | default: | ||
101 | break; | ||
102 | } | ||
103 | |||
104 | return NOTIFY_OK; | ||
105 | } | ||
106 | |||
107 | static struct notifier_block ipc_memory_nb = { | ||
108 | .notifier_call = ipc_memory_callback, | ||
109 | .priority = IPC_CALLBACK_PRI, | ||
110 | }; | ||
111 | |||
112 | /** | 74 | /** |
113 | * ipc_init - initialise ipc subsystem | 75 | * ipc_init - initialise ipc subsystem |
114 | * | 76 | * |
@@ -124,8 +86,6 @@ static int __init ipc_init(void) | |||
124 | sem_init(); | 86 | sem_init(); |
125 | msg_init(); | 87 | msg_init(); |
126 | shm_init(); | 88 | shm_init(); |
127 | register_hotmemory_notifier(&ipc_memory_nb); | ||
128 | register_ipcns_notifier(&init_ipc_ns); | ||
129 | return 0; | 89 | return 0; |
130 | } | 90 | } |
131 | device_initcall(ipc_init); | 91 | device_initcall(ipc_init); |