lkml.org 
[lkml]   [2010]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] locks: fix leaks on setlease errors
On Sat, Oct 30, 2010 at 05:31:14PM -0400, J. Bruce Fields wrote:
> We're depending on setlease to free the passed-in lease on failure.

But we would be much better to just free it in the caller. I'ts much
more natural - caller allocates, caller frees, and it's also simpler.

I'll send a patch to do so shortly, together with sorting out the
remaining nfs4d lock_manager_operations abuses. I think we're set with
that for 2.6.37, the setlease split can wait once we've sorted out the
lock freeing issue.



\
 
 \ /
  Last update: 2010-10-31 12:13    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site