]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fcntl(F_SETSIG) fix
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Mon, 14 Aug 2006 15:54:48 +0000 (08:54 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Aug 2006 20:10:59 +0000 (13:10 -0700)
commit0319bae05ed030c83efd3304ac420ebdf6a82391
tree4455618d0f6c8f4e17484180a8f69b529c04076c
parentb2dc44ffa07fdd6b2345a8143f97a36b0e9dc34b
[PATCH] fcntl(F_SETSIG) fix

fcntl(F_SETSIG) no longer works on leases because
lease_release_private_callback() gets called as the lease is copied in
order to initialise it.

The problem is that lease_alloc() performs an unnecessary initialisation,
which sets the lease_manager_ops.  Avoid the problem by allocating the
target lease structure using locks_alloc_lock().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/locks.c