Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100290
b: refs/heads/master
c: 647d87b
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent 6be2298 commit c917bbb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb09d3d4ee09b25876db549b6d5221610216e105
refs/heads/master: 647d87bd1b9e7ff24f89b7d4e38c75d756018caa
15 changes: 14 additions & 1 deletion trunk/drivers/scsi/osst.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static const char * osst_version = "0.99.4";
#include <linux/moduleparam.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <asm/dma.h>
#include <asm/system.h>
Expand Down Expand Up @@ -4359,7 +4360,7 @@ static int osst_int_ioctl(struct osst_tape * STp, struct osst_request ** aSRpnt,


/* Open the device */
static int os_scsi_tape_open(struct inode * inode, struct file * filp)
static int __os_scsi_tape_open(struct inode * inode, struct file * filp)
{
unsigned short flags;
int i, b_size, new_session = 0, retval = 0;
Expand Down Expand Up @@ -4725,6 +4726,18 @@ static int os_scsi_tape_open(struct inode * inode, struct file * filp)
return retval;
}

/* BKL pushdown: spaghetti avoidance wrapper */
static int os_scsi_tape_open(struct inode * inode, struct file * filp)
{
int ret;

lock_kernel();
ret = __os_scsi_tape_open(inode, filp);
unlock_kernel();
return ret;
}



/* Flush the tape buffer before close */
static int os_scsi_tape_flush(struct file * filp, fl_owner_t id)
Expand Down

0 comments on commit c917bbb

Please sign in to comment.