linux/arch/s390/kvm
Julia Lawall 9940fa80ce [S390] arch/s390/kvm: Use GFP_ATOMIC when a lock is held
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>
2010-06-08 18:58:23 +02:00
..
Kconfig [S390] spp: remove KVM_AWARE_CMF config option 2010-05-26 23:26:30 +02:00
Makefile
diag.c [S390] Replace ENOTSUPP usage with EOPNOTSUPP 2010-02-26 22:37:31 +01:00
gaccess.h KVM: s390: streamline memslot handling 2009-09-10 08:32:42 +03:00
intercept.c [S390] Replace ENOTSUPP usage with EOPNOTSUPP 2010-02-26 22:37:31 +01:00
interrupt.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
kvm-s390.c [S390] appldata/extmem/kvm: add missing GFP_KERNEL flag 2010-06-08 18:58:23 +02:00
kvm-s390.h KVM: use the correct RCU API for PROVE_RCU=y 2010-05-17 12:18:01 +03:00
priv.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
sie64a.S [S390] spp: remove KVM_AWARE_CMF config option 2010-05-26 23:26:30 +02:00
sigp.c [S390] arch/s390/kvm: Use GFP_ATOMIC when a lock is held 2010-06-08 18:58:23 +02:00