Re: [PATCH] Consolidate sleeping routines in file locking code

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: J. Bruce Fields <bfields@...>
Cc: Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, <devel@...>
Date: Thursday, September 20, 2007 - 5:09 am

J. Bruce Fields wrote:

Well, the locks_mandatory_area() has to check for inode mode change
in my lock callback, the fcntl_setlk() has to call the vfs_lock_file,
and flock_lock_file_wait() has to call the flock_lock_file, so
I don't see the ways of having one routine to lock the file.

If you don't mind, I'd port the patch with this approach (with the
"trylock" callback) on the latest Andrew's tree.


This one is already accepted, but I have just noticed that
the check for __mandatory_lock() in wait_event_interruptible
is ambiguous :(


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Consolidate sleeping routines in file locking code, Pavel Emelyanov, (Tue Sep 18, 9:41 am)
Re: [PATCH] Consolidate sleeping routines in file locking code, Pavel Emelyanov, (Thu Sep 20, 5:09 am)