Re: [PATCH] locks: fix fasync_struct memory leak in lease upgrade/downgrade handling

2015-03-05 Thread Jeff Layton
On Thu, 5 Mar 2015 07:57:09 +0100 Daniel Wagner wrote: > Hi Jeff, > > On 03/05/2015 01:06 AM, Jeff Layton wrote: > > Commit 8634b51f6ca2 (locks: convert lease handling to file_lock_context) > > introduced a regression in the handling of lease upgrade/downgrades. > > > > In the event that we alr

Re: [PATCH] locks: fix fasync_struct memory leak in lease upgrade/downgrade handling

2015-03-04 Thread Daniel Wagner
Hi Jeff, On 03/05/2015 01:06 AM, Jeff Layton wrote: > Commit 8634b51f6ca2 (locks: convert lease handling to file_lock_context) > introduced a regression in the handling of lease upgrade/downgrades. > > In the event that we already have a lease on a file and are going to > either upgrade or downgr

[PATCH] locks: fix fasync_struct memory leak in lease upgrade/downgrade handling

2015-03-04 Thread Jeff Layton
Commit 8634b51f6ca2 (locks: convert lease handling to file_lock_context) introduced a regression in the handling of lease upgrade/downgrades. In the event that we already have a lease on a file and are going to either upgrade or downgrade it, we skip doing any list insertion or deletion and skip t