Add spin_lock_irqsave transformation for ilock
authorRonald G. Minnich <rminnich@google.com>
Thu, 16 Jan 2014 22:05:58 +0000 (14:05 -0800)
committerRonald G. Minnich <rminnich@google.com>
Thu, 16 Jan 2014 22:45:38 +0000 (14:45 -0800)
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
scripts/spatch/locks.cocci

index 6f6ba9e..b6fac4c 100644 (file)
@@ -6,6 +6,16 @@ expression E;
 -E
 +&E->lock
  )
 -E
 +&E->lock
  )
+
+@@
+expression E;
+@@
+-ilock(
++spin_lock_irqsave(
+-E
++&E->lock
+ )
+
 @@
 expression E;
 @@
 @@
 expression E;
 @@