From: Julia Lawall Date: Sun, 29 Jun 2008 20:50:56 +0000 (+0200) Subject: It looks at least odd to apply spin_unlock to a mutex. X-Git-Tag: v2.6.27-rc1~970^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9be48a94b8ae8c944dc918ad65f2f27e9df3ed00;p=pandora-kernel.git It looks at least odd to apply spin_unlock to a mutex. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @def@ declarer DEFINE_MUTEX; identifier m; @@ DEFINE_MUTEX(m); @@ identifier def.m; @@ ( - spin_lock(&m) + mutex_lock(&m) | - spin_unlock(&m) + mutex_unlock(&m) ) // Signed-off-by: Julia Lawall Signed-off-by: Jesper Nilsson --- Reading git-diff-tree failed