diff options
author | Julia Lawall <julia@diku.dk> | 2010-05-30 15:49:22 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 19:01:29 +0200 |
commit | da2907ffd08a2d708c829ec171f05fe3ceab1315 (patch) | |
tree | 9c0a204817c3fd520b60adb085ede86b811392b3 /crypto/pcrypt.c | |
parent | [SCSI] qla2xxx: Updated version number to 8.03.03-k0. (diff) | |
download | linux-da2907ffd08a2d708c829ec171f05fe3ceab1315.tar.xz linux-da2907ffd08a2d708c829ec171f05fe3ceab1315.zip |
[SCSI] dpt_i2o: Use GFP_ATOMIC when a lock is held
The function adpt_i2o_post_wait is called from several places, in some of
which, such as adpt_abort, a lock may be held.
The functions adpt_i2o_reparse_lct and adpt_i2o_lct_get are called from
several places, including adpt_rescan where a lock may be 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_irqrestore
when any
GFP_KERNEL@p
... when any
}
@locked@
identifier gfp.fn;
@@
spin_lock_irqsave(...)
... when != spin_unlock_irqrestore
fn(...)
@depends on locked@
position gfp.p;
@@
- GFP_KERNEL@p
+ GFP_ATOMIC
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'crypto/pcrypt.c')
0 files changed, 0 insertions, 0 deletions