]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
megaraid: BKL pushdown
authorArnd Bergmann <arnd@arndb.de>
Tue, 20 May 2008 17:16:13 +0000 (19:16 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 20 Jun 2008 20:05:58 +0000 (14:05 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/scsi/megaraid/megaraid_mm.c

index 0ad215e27b83358a55f61f9b8a5b00f6e4f6b154..ac3b280c2a72abb7a310834b4ae45a924327db32 100644 (file)
@@ -15,6 +15,7 @@
  * Common management module
  */
 #include <linux/sched.h>
+#include <linux/smp_lock.h>
 #include "megaraid_mm.h"
 
 
@@ -96,6 +97,7 @@ mraid_mm_open(struct inode *inode, struct file *filep)
         */
        if (!capable(CAP_SYS_ADMIN)) return (-EACCES);
 
+       cycle_kernel_lock();
        return 0;
 }