Skip to content

Commit

Permalink
[SCSI] st: convert to unlocked_ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kai Makisara authored and James Bottomley committed Jan 23, 2008
1 parent 8ce3eca commit fd66c1b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
Steve Hirsch, Andreas Koppenh"ofer, Michael Leodolter, Eyal Lebedinsky,
Michael Schaefer, J"org Weule, and Eric Youngdale.
Copyright 1992 - 2007 Kai Makisara
Copyright 1992 - 2008 Kai Makisara
email Kai.Makisara@kolumbus.fi
Some small formal changes - aeb, 950809
Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
*/

static const char *verstr = "20070203";
static const char *verstr = "20080117";

#include <linux/module.h>

Expand Down Expand Up @@ -3214,8 +3214,7 @@ static int partition_tape(struct scsi_tape *STp, int size)


/* The ioctl command */
static int st_ioctl(struct inode *inode, struct file *file,
unsigned int cmd_in, unsigned long arg)
static long st_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg)
{
int i, cmd_nr, cmd_type, bt;
int retval = 0;
Expand Down Expand Up @@ -3870,7 +3869,7 @@ static const struct file_operations st_fops =
.owner = THIS_MODULE,
.read = st_read,
.write = st_write,
.ioctl = st_ioctl,
.unlocked_ioctl = st_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = st_compat_ioctl,
#endif
Expand Down

0 comments on commit fd66c1b

Please sign in to comment.