浏览代码

scsi-tgt: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Arnd Bergmann 17 年之前
父节点
当前提交
556e4b0b69
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/scsi/scsi_tgt_if.c

+ 2 - 0
drivers/scsi/scsi_tgt_if.c

@@ -21,6 +21,7 @@
  */
 #include <linux/miscdevice.h>
 #include <linux/file.h>
+#include <linux/smp_lock.h>
 #include <net/tcp.h>
 #include <scsi/scsi.h>
 #include <scsi/scsi_cmnd.h>
@@ -321,6 +322,7 @@ static int tgt_open(struct inode *inode, struct file *file)
 {
 	tx_ring.tr_idx = rx_ring.tr_idx = 0;
 
+	cycle_kernel_lock();
 	return 0;
 }