From 11a56d2216439215f6acdbf7a41f19b8a6d4dd57 Mon Sep 17 00:00:00 2001 From: SecureCRT Date: Tue, 7 Aug 2012 00:53:53 +0800 Subject: [PATCH] add in_interrupt back --- drivers/base/genlock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/base/genlock.c b/drivers/base/genlock.c index a89ee7ee..b5f8e42e 100755 --- a/drivers/base/genlock.c +++ b/drivers/base/genlock.c @@ -22,6 +22,7 @@ #include #include #include +#include /* 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 */