All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ceph: fix memory leak in async readpages
@ 2011-09-28 18:19 David Flynn
  2011-09-28 18:34 ` Sage Weil
  0 siblings, 1 reply; 6+ messages in thread
From: David Flynn @ 2011-09-28 18:19 UTC (permalink / raw)
  To: ceph-devel

The finish_read callback introduced in 63c90314546c1cec1f220f6ab24ea
fails to release the page list allocated in start_read.
---
 fs/ceph/addr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index e06a322..4144caf 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -261,6 +261,7 @@ static void finish_read(struct ceph_osd_request *req, struct ceph_msg *msg)
 		unlock_page(page);
 		page_cache_release(page);
 	}
+	kfree(req->r_pages);
 }
 
 /*
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-25  1:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-28 18:19 [PATCH] ceph: fix memory leak in async readpages David Flynn
2011-09-28 18:34 ` Sage Weil
2011-09-28 19:16   ` Sage Weil
2011-10-24  8:28     ` Jeff Wu
2011-10-24 16:09       ` Sage Weil
2011-10-25  1:32         ` Jeff Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.