瀏覽代碼

ipmi-watchdog: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Arnd Bergmann 17 年之前
父節點
當前提交
af96f0103d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/char/ipmi/ipmi_watchdog.c

+ 3 - 0
drivers/char/ipmi/ipmi_watchdog.c

@@ -35,6 +35,7 @@
 #include <linux/moduleparam.h>
 #include <linux/moduleparam.h>
 #include <linux/ipmi.h>
 #include <linux/ipmi.h>
 #include <linux/ipmi_smi.h>
 #include <linux/ipmi_smi.h>
+#include <linux/smp_lock.h>
 #include <linux/watchdog.h>
 #include <linux/watchdog.h>
 #include <linux/miscdevice.h>
 #include <linux/miscdevice.h>
 #include <linux/init.h>
 #include <linux/init.h>
@@ -819,6 +820,8 @@ static int ipmi_open(struct inode *ino, struct file *filep)
 		if (test_and_set_bit(0, &ipmi_wdog_open))
 		if (test_and_set_bit(0, &ipmi_wdog_open))
 			return -EBUSY;
 			return -EBUSY;
 
 
+		cycle_kernel_lock();
+
 		/*
 		/*
 		 * Don't start the timer now, let it start on the
 		 * Don't start the timer now, let it start on the
 		 * first heartbeat.
 		 * first heartbeat.