Skip to content

Commit

Permalink
Fix usage of MUTEX macro in mutex_enter_nested
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #70
  • Loading branch information
Prakash Surya authored and behlendorf committed Dec 13, 2011
1 parent 791dc87 commit 93806f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sys/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93806f5

Please sign in to comment.