[sheepdog] [PATCH 1/2] sheep: remove fd leak in vdi deletion process

Hitoshi Mitake mitake.hitoshi at gmail.com
Tue Jan 28 04:36:58 CET 2014


At Tue, 28 Jan 2014 11:32:16 +0800,
Liu Yuan wrote:
> 
> On Tue, Jan 28, 2014 at 11:17:36AM +0800, Liu Yuan wrote:
> > On Tue, Jan 28, 2014 at 11:38:21AM +0900, Hitoshi Mitake wrote:
> > > The commit 5e460b4d6444 introduced fd leak in the vdi deletion
> > > process. This patch removes it.
> > > 
> > 
> > You should release di and dw too, I guess this is why I found severe memory
> > leak in our test cluster.
> 
> After a close look, seems that di and dw is releaed. Need double check.

Yes delete_one_vdi_done() frees di and dw.

BTW, how do you detect memory leak in your cluster? valgrind? It must
be a serious problem. If you know a way to reproduce, I'd like you to
share it.

Thanks,
Hitoshi




More information about the sheepdog mailing list