aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
authorKai Makisara <Kai.Makisara@kolumbus.fi>2008-01-17 15:45:22 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:29 -0500
commitfd66c1b4e491a2a17d7a420fa38fd04b0e8d36c1 (patch)
tree086586daec0416ec5c45564d6db6cde20a139c9b /drivers/scsi/st.c
parent8ce3eca4dc8161e030a055bde94cde28476e0894 (diff)
[SCSI] st: convert to unlocked_ioctl
Convert st to unlocked_ioctl. The necessary locking was already in place. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 328c47c6aeb1..71952703125a 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -9,7 +9,7 @@
9 Steve Hirsch, Andreas Koppenh"ofer, Michael Leodolter, Eyal Lebedinsky, 9 Steve Hirsch, Andreas Koppenh"ofer, Michael Leodolter, Eyal Lebedinsky,
10 Michael Schaefer, J"org Weule, and Eric Youngdale. 10 Michael Schaefer, J"org Weule, and Eric Youngdale.
11 11
12 Copyright 1992 - 2007 Kai Makisara 12 Copyright 1992 - 2008 Kai Makisara
13 email Kai.Makisara@kolumbus.fi 13 email Kai.Makisara@kolumbus.fi
14 14
15 Some small formal changes - aeb, 950809 15 Some small formal changes - aeb, 950809
@@ -17,7 +17,7 @@
17 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support 17 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
18 */ 18 */
19 19
20static const char *verstr = "20070203"; 20static const char *verstr = "20080117";
21 21
22#include <linux/module.h> 22#include <linux/module.h>
23 23
@@ -3214,8 +3214,7 @@ static int partition_tape(struct scsi_tape *STp, int size)
3214 3214
3215 3215
3216/* The ioctl command */ 3216/* The ioctl command */
3217static int st_ioctl(struct inode *inode, struct file *file, 3217static long st_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg)
3218 unsigned int cmd_in, unsigned long arg)
3219{ 3218{
3220 int i, cmd_nr, cmd_type, bt; 3219 int i, cmd_nr, cmd_type, bt;
3221 int retval = 0; 3220 int retval = 0;
@@ -3870,7 +3869,7 @@ static const struct file_operations st_fops =
3870 .owner = THIS_MODULE, 3869 .owner = THIS_MODULE,
3871 .read = st_read, 3870 .read = st_read,
3872 .write = st_write, 3871 .write = st_write,
3873 .ioctl = st_ioctl, 3872 .unlocked_ioctl = st_ioctl,
3874#ifdef CONFIG_COMPAT 3873#ifdef CONFIG_COMPAT
3875 .compat_ioctl = st_compat_ioctl, 3874 .compat_ioctl = st_compat_ioctl,
3876#endif 3875#endif