login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
17
Re: [PATCH 4/6] USB-BKL: Remove BKL use in uhci-debug
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: [PATCH 4/6] USB-BKL: Remove BKL use in uhci-debug
Date: Thursday, June 17, 2010 - 10:43 am
On Wed, Jun 02, 2010 at 09:47:46AM -0400, Alan Stern wrote:
quoted text
> On Tue, 1 Jun 2010, Arnd Bergmann wrote: > > > From: Andi Kleen <ak@linux.intel.com> > > > > BKL was not really needed, just came from earlier push downs. > > Yes. > > > The only part that's a bit dodgy is the lseek function. Would > > need another lock or atomic access to fpos on 32bit? > > Better to have a libfs lseek > > It doesn't matter. Anyone who tries to do lseeks on this file > from two different threads, simultaneously, deserves what they get. > > > @@ -539,11 +534,11 @@ static loff_t uhci_debug_lseek(struct file *file, loff_t off, int whence) > > new = file->f_pos + off; > > break; > > } > > + > > + /* XXX: Can size shrink? */ > > if (new < 0 || new > up->size) { > > - unlock_kernel(); > > return -EINVAL; > > } > > - unlock_kernel(); > > return (file->f_pos = new); > > } > > This comment isn't needed; the size cannot change after the file has > been opened.
I've removed the comment in the version I just committed. thanks, greg k-h --
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:
Re: [PATCH 4/6] USB-BKL: Remove BKL use in uhci-debug
, Alan Stern
, (Wed Jun 2, 6:47 am)
Re: [PATCH 4/6] USB-BKL: Remove BKL use in uhci-debug
, Greg KH
, (Thu Jun 17, 10:43 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Brownell
Re: build #337 failed for 2.6.24-rc1-gb1d08ac In function `usbnet_set_settings':
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Matthew Garrett
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319]
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Johannes Schindelin
Re: error: cannot lock ref 'refs/remotes/origin/*'
Jonathan Nieder
Re: [PATCH v2] git-send-email.perl: fix In-Reply-To for second and subsequent patc...
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Eric Dumazet
Re: HTB accuracy on 10GbE
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
3c515: convert to net_device_ops
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Claudio Jeker
Re: OT: Python (was Re: vi in /bin)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate