]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fcntl(F_SETSIG) fix
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Dec 2006 18:43:11 +0000 (19:43 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 4 Dec 2006 18:43:11 +0000 (19:43 +0100)
commit25e1dd8a73c6661c03104f53199b501be489888d
tree9bc8a9dfa3f09c1e84a2de832600a7c62313b2e1
parentba6c35f8887b3c483d8f63639f3959c163f05e72
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: Adrian Bunk <bunk@stusta.de>
fs/locks.c