]> git.baikalelectronics.ru Git - kernel.git/commit
locks: add lock cancel command
authorMarc Eshel <eshel@almaden.ibm.com>
Thu, 18 Jan 2007 22:52:58 +0000 (17:52 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 7 May 2007 00:38:28 +0000 (20:38 -0400)
commite6d2630abffc373459a8f5372a441809ff3ad853
tree62af6b2eff0885c26aa2af4b01890cc02cf0b2f0
parent1dd78c36e7e99d9cae20add926080be614911c00
locks: add lock cancel command

Lock managers need to be able to cancel pending lock requests.  In the case
where the exported filesystem manages its own locks, it's not sufficient just
to call posix_unblock_lock(); we need to let the filesystem know what's
happening too.

We do this by adding a new fcntl lock command: FL_CANCELLK.  Some day this
might also be made available to userspace applications that could benefit from
an asynchronous locking api.

Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
fs/locks.c
include/linux/fcntl.h
include/linux/fs.h