add in_interrupt back

This commit is contained in:
SecureCRT 2012-08-07 00:53:53 +08:00
parent 65b62e5ee4
commit 11a56d2216

View File

@ -22,6 +22,7 @@
#include <linux/anon_inodes.h>
#include <linux/miscdevice.h>
#include <linux/genlock.h>
#include <linux/interrupt.h>
/* Lock states - can either be unlocked, held as an exclusive write lock or a
* shared read lock
@ -296,8 +297,8 @@ static int _genlock_lock(struct genlock *lock, struct genlock_handle *handle,
* succeed to not block, the mere idea is too dangerous to continue
*/
// if (in_interrupt() && !(flags & GENLOCK_NOBLOCK))
// BUG();
if (in_interrupt() && !(flags & GENLOCK_NOBLOCK))
BUG();
/* Fast path - the lock is unlocked, so go do the needful */