Revision 9940fa80ce0e546646b057958960c5c6fd2bbbb2 authored by Julia Lawall on 08 June 2010, 16:58:11 UTC, committed by Martin Schwidefsky on 08 June 2010, 16:58:23 UTC
The containing function is called from several places.  At one of them, in
the function __sigp_stop, the spin lock &fi->lock is held.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@gfp exists@
identifier fn;
position p;
@@

fn(...) {
... when != spin_unlock
    when any
  GFP_KERNEL@p
 ... when any
}

@locked@
identifier gfp.fn;
@@

spin_lock(...)
... when != spin_unlock
fn(...)

@depends on locked@
position gfp.p;
@@

- GFP_KERNEL@p
+ GFP_ATOMIC
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 3164a3c
History
File Mode Size
Kconfig -rw-r--r-- 2.7 KB
Makefile -rw-r--r-- 422 bytes
addr.c -rw-r--r-- 3.8 KB
addr.h -rw-r--r-- 615 bytes
atm_misc.c -rw-r--r-- 2.6 KB
atm_sysfs.c -rw-r--r-- 3.9 KB
br2684.c -rw-r--r-- 20.6 KB
clip.c -rw-r--r-- 24.2 KB
common.c -rw-r--r-- 20.0 KB
common.h -rw-r--r-- 1.6 KB
ioctl.c -rw-r--r-- 9.3 KB
lec.c -rw-r--r-- 63.6 KB
lec.h -rw-r--r-- 5.1 KB
lec_arpc.h -rw-r--r-- 2.9 KB
mpc.c -rw-r--r-- 38.3 KB
mpc.h -rw-r--r-- 1.9 KB
mpoa_caches.c -rw-r--r-- 14.7 KB
mpoa_caches.h -rw-r--r-- 3.0 KB
mpoa_proc.c -rw-r--r-- 7.2 KB
pppoatm.c -rw-r--r-- 10.7 KB
proc.c -rw-r--r-- 11.4 KB
protocols.h -rw-r--r-- 379 bytes
pvc.c -rw-r--r-- 3.7 KB
raw.c -rw-r--r-- 1.8 KB
resources.c -rw-r--r-- 9.8 KB
resources.h -rw-r--r-- 996 bytes
signaling.c -rw-r--r-- 6.9 KB
signaling.h -rw-r--r-- 838 bytes
svc.c -rw-r--r-- 16.4 KB

back to top