An error occurred fetching the project authors.
- 25 Sep, 2002 1 commit
-
-
Ingo Molnar authored
Ulrich found another small detail wrt. POSIX requirements for threads - this time it's the recursion features (read-held lock being write-locked means an upgrade if the same 'process' is the owner, means a deadlock if a different 'process'). this requirement even makes some sense - the group of threads who own a lock really own all rights to the lock as well. These changes fix this, all testcases pass now. (inter-process testcases as well, which are not affected by this patch.) (SIGURG and SIGIO semantics should also continue to work - there's some more stuff we can optimize with the new pidhash in this area, but that's for later.)
-
- 24 Sep, 2002 1 commit
-
-
Matthew Wilcox authored
Looks like I dropped a hunk from my patchset, sorry. We never set FL_SLEEP in the flock case, so if we should block, we'll livelock instead.
-
- 14 Sep, 2002 1 commit
-
-
Petr Vandrovec authored
This fixes endless loop without schedule which happens as soon as smbd invokes fcntl64(7, F_SETLK64, ...). fcntl_setlk64 gets cmd F_SETLK64, not F_SETLK tested in the loop; Maybe return value from posix_lock_file should be changed to -EINPROGRESS or -EJUKEBOX instead of testing passed cmd in callers, but this oneliner works too. If you preffer changing posix_lock_file return value to clearly distinugish between -EAGAIN and lock request queued, I'll do that.
-
- 10 Sep, 2002 1 commit
-
-
Matthew Wilcox authored
- Add FL_SLEEP flag to indicate we intend to sleep and therefore desire to be placed on the block list. Use it for POSIX & flock locks. - Remove locks_block_on. - Change posix_unblock_lock to eliminate a race that will appear once we don't use the BKL any more. - Update the comment for locks_same_owner() and rename it to posix_same_owner(). - Change locks_mandatory_area() to allocate its lock on the stack and call posix_lock_file() instead of repeating that logic. - Rename the "caller" parameter to posix_lock_file() to "request" to better show that this is not to be inserted directly. - Redo some of the proc code a little. Stop exposing kernel addresses to userspace (whoever thought _that_ was a good idea?!) and show how we should be printing the device name. The last part is ifdeffed out to avoid breaking lslk. - Remove FL_BROKEN. And there was much rejoicing.
-
- 03 Sep, 2002 1 commit
-
-
James Morris authored
This is a cleanup of the sigio/sigurg code. Summary: o Removed sk->proc, SIGURG now sent via vfs, credentials checked during delivery. o SIOCSPGRP etc. ioctls use vfs, and work now for SIGIO as well as SIGURG. o Removed socket fcntl code. o Consolidate lsm file_set_fowner() hooks. o Fixed fowner race. o Fixed associated mainline memory leak in fcntl_dirnotify().
-
- 28 Aug, 2002 1 commit
-
-
Matthew Wilcox authored
This optimisation is really noticeable as it avoids having to take the BKL on every close().
-
- 29 Jul, 2002 1 commit
-
-
Matthew Wilcox authored
locks_unlock_delete is buggy in a couple of different ways (previously reported by Brian Dixon). Rather than fix it, this patch simply deletes it and uses the normal posix file locking mechanisms to remove all locks in locks_remove_posix instead.
-
- 27 Jul, 2002 1 commit
-
-
Matthew Wilcox authored
- Remove third argument from file_lock security op. Whether the lock is blocking or not cannot make any difference to a security module! - Fix the call in sys_flock to pass the translated lock command, not the original. - Add a call in fcntl_setlease. If they're going to know about two types of lock, let's tell them about the third too.
-
- 22 Jul, 2002 1 commit
-
-
Stephen D. Smalley authored
The below patch adds the filesystem-related LSM hooks, specifically the super_block, inode, and file hooks, to the 2.5.27 kernel.
-
- 04 Jul, 2002 1 commit
-
-
Alexander Viro authored
* ->i_dev followed the example of ->s_dev - it's dev_t now. All remaining uses of ->i_dev either outright want dev_t (stat()) or couldn't care less (printing major:minor in /proc/<pid>/maps, etc.)
-
- 18 Jun, 2002 1 commit
-
-
Stephen Rothwell authored
This patch fixes the following problems in the file lease: when there are multiple shared leases on a file, all the lease holders get notified when someone opens the file for writing (used to be only the first). when a nonblocking open breaks a lease, it will time out as it should (used to never time out). This should make the leases code more usable (hopefully).
-
- 12 Jun, 2002 1 commit
-
-
Matthew Wilcox authored
- Inline locks_notify_blocked. - Remove a couple of now-bogus comments. - Remove the obsolete F_SHLCK and F_EXLCK cases. - Remove the last remaining reference to FL_BROKEN.
-
- 08 Jun, 2002 3 commits
-
-
Matthew Wilcox authored
Define the for_each_lock macro and start replacing ugly special for loops with it. Rejig the interface between sys_flock and flock_lock_file to always pass a struct file_lock rather than a command. Eliminate some gotos by simplifying the logic. Remove some redundant initialisation.
-
Matthew Wilcox authored
This patch removes the MSNFS defines. These locks have a wider purpose than emulating Microsoft NFS semantics.
-
Matthew Wilcox authored
This patch removes the annoying and confusing `wait' argument from many places. The only change in behaviour is that we now yield once when unblocking other BSD-style flocks instead of once for each lock. This slightly improves the semantics for userspace. Before, when we had two tasks waiting on a lock, the first one would receive the lock. Now, the one with the highest priority receives the lock.
-
- 06 Jun, 2002 1 commit
-
-
Stephen Rothwell authored
Another trivial part of a Matthew Wilcox patch. This just defines macros for distinguishing the differnet types of locks.
-
- 05 Jun, 2002 2 commits
-
-
Stephen Rothwell authored
Another simple part of a Matthew Wilcox patch. We do not need to pass the file descriptor to the fcntl_[sg]etlk functions, only the struct file * which we have already got from the file descriptor and verified.
-
Stephen Rothwell authored
Trivial part of a patch by Matthew Wilcox
-
- 03 Jun, 2002 1 commit
-
-
Randy Hron authored
Most /proc/slabinfo cache_names are in the format: cache_name. There are a couple with spaces in the name, which is inconsistent and requires a special case when scripting. Changes "fasync cache" and "file lock cache" to have the usual underscore.
-
- 21 Feb, 2002 1 commit
-
-
Ingo Molnar authored
- make vma->vm_next_share and vma->vm_pprev_share a proper list.h list as well.
-
- 09 Feb, 2002 1 commit
-
-
Dave Jones authored
Big bits first, I'll redo the smaller bits tomorrow after some sleep. Same as last time, rediffed against pre5
-
- 05 Feb, 2002 8 commits
-
-
Linus Torvalds authored
- Kai Germaschewski: ISDN updates - Al Viro: start moving buffer cache indexing to "struct block_device *" - Greg KH: USB update - Russell King: fix up some ARM merge issues - Ingo Molnar: scalable scheduler
-
Linus Torvalds authored
- Trond Myklebust: deadlock checking in lockd server - Tim Waugh: fix up parport wrong #define - Christoph Hellwig: i2c update, ext2 cleanup - Al Viro: fix partition handling sanity check. - Trond Myklebust: make NFS use SLAB_NOFS, and not play games with PF_MEMALLOC - Ben Fennema: UDF update - Alan Cox: continued merging - Chris Mason: get /proc buffer memory sizes right after buf-in-page-cache
-
Linus Torvalds authored
- Andrew Grover: ACPI update - Al Viro: block devices.. - Andrea Arcangeli: fix list manipulation bogosity - Trond Myklebust: 64-bit file locking fixes - Brad Hards: USB CDC ethernet - Chris Mason: reiserfs speedup - Robert Love: re-merge AMD 761 GART support that was lost in -ac merge - Adam Richter: check pci_module_init() return value
-
Linus Torvalds authored
- Greg KH: start migration to new "min()/max()" - Roman Zippel: move affs over to "min()/max()". - Vojtech Pavlik: VIA update (make sure not to IRQ-unmask a vt82c576) - Jan Kara: quota bug-fix (don't decrement quota for non-counted inode) - Anton Altaparmakov: more NTFS updates - Al Viro: make nosuid/noexec/nodev be per-mount flags, not per-filesystem - Alan Cox: merge input/joystick layer differences, driver and alpha merge - Keith Owens: scsi Makefile cleanup - Trond Myklebust: fix oopsable race in locking code - Jean Tourrilhes: IrDA update
-
Linus Torvalds authored
- merge with Alan (USB, zoran, sony motion-eye, rio, dmi-scan)
-
Linus Torvalds authored
- Chris Mason: ReiserFS pre-allocation locking bugfix - David Miller: fix bitops users (requires "long" alignment) - Andrey Savochkin: file locking failure case SMP lock fix - Urban Widmark: smbfs update (avoid unnecessary flushing, make NetApp work) - Andrew Grover: ACPI update - Jeff Garzik: network driver updates - Maciej Rozycki: IO-APIC level trigger problem workaround - Rusty Russell: ipt_unclean fix - Richard Gooch: devfs update
-
Linus Torvalds authored
- Jens: better ordering of requests when unable to merge - Neil Brown: make md work as a module again (we cannot autodetect in modules, not enough background information) - Neil Brown: raid5 SMP locking cleanups - Neil Brown: nfsd: handle Irix NFS clients named pipe behavior and dentry leak fix - maestro3 shutdown fix - fix dcache hash calculation that could cause bad hashes under certain circumstances (Dean Gaudet) - David Miller: networking and sparc updates - Jeff Garzik: include file cleanups - Andy Grover: ACPI update - Coda-fs error return fixes - rth: alpha Jensen update
-
Linus Torvalds authored
-