It looks at least odd to apply spin_unlock to a mutex.
authorJulia Lawall <julia@diku.dk>
Sun, 29 Jun 2008 20:50:56 +0000 (22:50 +0200)
committerJesper Nilsson <jesper@jni.nu>
Sun, 29 Jun 2008 20:50:56 +0000 (22:50 +0200)
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@def@
declarer DEFINE_MUTEX;
identifier m;
@@

DEFINE_MUTEX(m);

@@
identifier def.m;
@@

(
- spin_lock(&m)
+ mutex_lock(&m)
|
- spin_unlock(&m)
+ mutex_unlock(&m)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>

No differences found