From: J. Bruce Fields Date: Fri, 11 Nov 2005 00:08:00 +0000 (-0500) Subject: [PATCH] VFS: Fix memory leak with file leases X-Git-Tag: v2.6.15-rc2~214 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc15ae14e97ee9d5ed740cbb0b94996076d8b37e;p=pandora-kernel.git [PATCH] VFS: Fix memory leak with file leases The patch http://linux.bkbits.net:8080/linux-2.6/diffs/fs/locks.c@1.70??nav=index.html introduced a pretty nasty memory leak in the lease code. When freeing the lease, the code in locks_delete_lock() will correctly clean up the fasync queue, but when we return to fcntl_setlease(), the freed fasync entry will be reinstated. This patch ensures that we skip the call to fasync_helper() when we're freeing up the lease. Signed-off-by: J. Bruce Fields Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed