Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: J. Bruce Fields <bfields@...>
Cc: Andrew Morton <akpm@...>, Bryan Wu <cooloney@...>, <linux-kernel@...>, <torvalds@...>, <willy@...>, <uclinux-dist-devel@...>, <richterd@...>
Date: Thursday, May 1, 2008 - 2:24 am

On Tue, Apr 29, 2008 at 05:42:31PM -0400, J. Bruce Fields wrote:
 
The hell it might.  Leases are broken, plain and simple.  Not to mention
anything else, a couple of threads with shared descriptor table will
bypass these checks happily.

FWIW, that's far from the worst problem in fs/locks.c, and not even the
worst one with leases.

That, BTW, is a fine demonstration of the reasons why application-specific
kernel warts(tm) are bad.  Lease support is samba-only turd; so's dnotify,
with its lovely problems.  And interfaces like that *suck*; they are
developed with one application in mind and that leads to "we know how it
will be used" mentality.  With obvious implications for quality of review
they get from their developers...

Al, currently crawling through struct file_lock review and extremely annoyed
by the amount of turds being found...
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, Bryan Wu, (Mon Apr 28, 11:42 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, Andrew Morton, (Tue Apr 29, 4:54 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, Matthew Wilcox, (Tue Apr 29, 6:21 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, J. Bruce Fields, (Fri May 2, 6:26 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, J. Bruce Fields, (Tue Apr 29, 5:42 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, Al Viro, (Thu May 1, 2:24 am)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, J. Bruce Fields, (Fri May 2, 6:22 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, david m. richter, (Tue Apr 29, 7:21 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, J. Bruce Fields, (Wed Apr 30, 1:50 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, david m. richter, (Wed Apr 30, 2:14 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, Mike Frysinger, (Tue Apr 29, 6:01 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, J. Bruce Fields, (Tue Apr 29, 6:11 pm)
Re: [LTP/VFS] fcntl SETLEASE fails on ramfs/tmpfs, Mike Frysinger, (Tue Apr 29, 6:15 pm)