login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
22
Re: [PATCH] aacraid: BKL push down
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy.Dunlap <rdunlap@...>
To: Alan Cox <alan@...>
Cc: <linux-scsi@...>, <linux-kernel@...>
Subject:
Re: [PATCH] aacraid: BKL push down
Date: Thursday, May 22, 2008 - 5:55 pm
On Thu, 22 May 2008, Alan Cox wrote:
quoted text
> The aacraid definitely needs the BKL internally right now so push the > lock take down into the driver but go no further > > Signed-off-by: Alan Cox <alan@redhat.com>
Wrong patch file ??
quoted text
> diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c > index b31faec..5e6b47f 100644 > --- a/drivers/scsi/3w-9xxx.c > +++ b/drivers/scsi/3w-9xxx.c > @@ -111,7 +111,7 @@ static void twa_aen_queue_event(TW_Device_Extension *tw_dev, TW_Command_Apache_H > static int twa_aen_read_queue(TW_Device_Extension *tw_dev, int request_id); > static char *twa_aen_severity_lookup(unsigned char severity_code); > static void twa_aen_sync_time(TW_Device_Extension *tw_dev, int request_id); > -static int twa_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg); > +static long twa_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg); > static int twa_chrdev_open(struct inode *inode, struct file *file); > static int twa_fill_sense(TW_Device_Extension *tw_dev, int request_id, int copy_sense, int print_host); > static void twa_free_request_id(TW_Device_Extension *tw_dev,int request_id); > @@ -202,7 +202,7 @@ static struct device_attribute *twa_host_attrs[] = { > /* File operations struct for character device */ > static const struct file_operations twa_fops = { > .owner = THIS_MODULE, > - .ioctl = twa_chrdev_ioctl, > + .unlocked_ioctl = twa_chrdev_ioctl, > .open = twa_chrdev_open, > .release = NULL > }; > @@ -619,7 +619,7 @@ out: > } /* End twa_check_srl() */ > > /* This function handles ioctl for the character device */ > -static int twa_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) > +static long twa_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > { > long timeout; > unsigned long *cpu_addr, data_buffer_length_adjusted = 0, flags = 0; > @@ -635,7 +635,8 @@ static int twa_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int > TW_Event *event; > struct timeval current_time; > u32 current_time_ms; > - TW_Device_Extension *tw_dev = twa_device_extension_list[iminor(inode)]; > + unsigned int minor = iminor(file->f_path.dentry->d_inode); > + TW_Device_Extension *tw_dev = twa_device_extension_list[minor]; > int retval = TW_IOCTL_ERROR_OS_EFAULT; > void __user *argp = (void __user *)arg; > > diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c > index 8c22329..33a6a2e 100644 > --- a/drivers/scsi/3w-xxxx.c > +++ b/drivers/scsi/3w-xxxx.c > @@ -874,7 +874,7 @@ static int tw_allocate_memory(TW_Device_Extension *tw_dev, int size, int which) > } /* End tw_allocate_memory() */ > > /* This function handles ioctl for the character device */ > -static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) > +static long tw_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > { > int request_id; > dma_addr_t dma_handle; > @@ -886,7 +886,8 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int > long timeout; > TW_New_Ioctl *tw_ioctl; > TW_Passthru *passthru; > - TW_Device_Extension *tw_dev = tw_device_extension_list[iminor(inode)]; > + unsigned int minor = iminor(file->f_path.dentry->d_inode); > + TW_Device_Extension *tw_dev = tw_device_extension_list[minor]; > int retval = -EFAULT; > void __user *argp = (void __user *)arg; > > @@ -1043,7 +1044,7 @@ static int tw_chrdev_open(struct inode *inode, struct file *file) > /* File operations struct for character device */ > static const struct file_operations tw_fops = { > .owner = THIS_MODULE, > - .ioctl = tw_chrdev_ioctl, > + .unlocked_ioctl = tw_chrdev_ioctl, > .open = tw_chrdev_open, > .release = NULL > }; > --
-- ~Randy --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] aacraid: BKL push down
, Alan Cox
, (Thu May 22, 5:39 pm)
Re: [PATCH] aacraid: BKL push down
, Randy.Dunlap
, (Thu May 22, 5:55 pm)
Re: [PATCH] aacraid: BKL push down
, Alan Cox
, (Thu May 22, 6:18 pm)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Ryan Hope
reiser4 for 2.6.27-rc1
Paul Menage
Re: [RFC][PATCH 6/7] Account for the number of tasks within container
Glauber de Oliveira Costa
[PATCH 1/19] unify desc_struct
David Woodhouse
Re: OT: character encodings (was: Linux 2.6.20-rc4)
git
:
Eric Wong
Re: [RFC] Git config file reader in Perl (WIP)
Junio C Hamano
[PATCH/POLL] git-format-patch: the default suffix is now .patch, not .txt
Martin Langhoff
Re: pack operation is thrashing my server
Franck Bui-Huu
Re: [PATCH 1/2] Add git-archive
openbsd-misc
:
Chris Bullock
OpenBSD isakmpd and pf vs Cisco PIX or ASA
Richard Stallman
Real men don't attack straw men
Axton
Re: rouge IPs / user
Hannah Schroeter
Re: Improving disk reliability
linux-netdev
:
Andi Kleen
[PATCH RFC] [4/9] modpost: Fix format string warnings
Jeff Garzik
Re: [regression] e1000e broke e1000
Linus Torvalds
Re: [GIT]: Networking
Pekka Enberg
Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment
Latest forum posts
trouble with my Asus Mainboard
34 minutes ago
Linux kernel
what is "callback function"?.can anyone explain me please..
19 hours ago
Linux general
unable to remove block device driver module
1 day ago
Linux kernel
Is there anything like Real-time drivers?
2 days ago
Linux general
I can't allocate more than 4 MB with pci_alloc_consistent
2 days ago
Linux kernel
Resetting the bios password for Toshiba Laptop
2 days ago
Hardware
Kernel panic while installing fedora core 5 or ubuntu
3 days ago
Hardware
Interactive Linux kernel map
3 days ago
Linux kernel
unable to add a variable in buffer_head struct
3 days ago
Linux kernel
Linux Input driver - setting scaling/resolution on USB mouse
4 days ago
Linux kernel
Show all forums...
Recent Tags
-rc
2.6.27
quote
Jared Hulbert
performance
git
GCC
Linux
Andrew Morton
Linus Torvalds
release
squashfs
cramfs
Rik van Riel
git 1.6
filesystem
Junio Hamano
AXFS
Ingo Molnar
git 1.6.0
more tags
Colocation donated by:
Who's online
There are currently
2 users
and
757 guests
online.
Online users
Jeremy
Mr_Z
Syndicate
speck-geostationary