]> granicus.if.org Git - spl/commitdiff
Fix usage of MUTEX macro in mutex_enter_nested
authorPrakash Surya <surya1@llnl.gov>
Mon, 12 Dec 2011 23:37:30 +0000 (15:37 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 13 Dec 2011 19:04:21 +0000 (11:04 -0800)
A call site of the MUTEX macro had incorrectly placed its closing
parenthesis, causing two parameters to be passed rather than one. This
change moves the misplaced parenthesis to fix the typographical error.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #70

include/sys/mutex.h

index b41b3cead06e74eab3606d937ea3a20107cddb7a..213bc247786afac742e4e31d3e7afb3d92ddc5ed 100644 (file)
@@ -195,7 +195,7 @@ spl_mutex_clear_owner(kmutex_t *mp)
 #ifdef HAVE_GPL_ONLY_SYMBOLS
 # define mutex_enter_nested(mp, sc)                                     \
 ({                                                                      \
-        mutex_lock_nested(MUTEX(mp, sc));                               \
+        mutex_lock_nested(MUTEX(mp), sc);                               \
         spl_mutex_set_owner(mp);                                        \
 })
 #else