Re: [PATCH v2 09/17] locks: define a lm_setup handler for leases

2014-09-04 Thread Christoph Hellwig
On Thu, Sep 04, 2014 at 08:38:35AM -0400, Jeff Layton wrote: > ...and move the fasync setup into it for fcntl lease calls. At the same > time, change the semantics of how the file_lock double-pointer is > handled. Up until now, on a successful lease return you got a pointer to > the lock on the lis

[PATCH v2 09/17] locks: define a lm_setup handler for leases

2014-09-04 Thread Jeff Layton
...and move the fasync setup into it for fcntl lease calls. At the same time, change the semantics of how the file_lock double-pointer is handled. Up until now, on a successful lease return you got a pointer to the lock on the list. This is bad, since that pointer can no longer be relied on as vali