Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
647d87bd
Commit
647d87bd
authored
May 15, 2008
by
Jonathan Corbet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osst: cdev lock_kernel() pushdown.
Signed-off-by:
Jonathan Corbet
<
corbet@lwn.net
>
parent
eb09d3d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
drivers/scsi/osst.c
drivers/scsi/osst.c
+14
-1
No files found.
drivers/scsi/osst.c
View file @
647d87bd
...
...
@@ -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>
...
...
@@ -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
;
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment