dm thin: reinstate missing mempool_free in cell_release_singleton
authorMike Snitzer <snitzer@redhat.com>
Sat, 12 May 2012 00:43:12 +0000 (01:43 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 12 May 2012 00:43:12 +0000 (01:43 +0100)
commit03aaae7cdc71bc306888440b1f569d463e917b6d
tree0f26df484419ac7cfc73b0d13f94a4cf7b701781
parentd48b97b403d23f6df0b990cee652bdf9a52337a3
dm thin: reinstate missing mempool_free in cell_release_singleton

Fix a significant memory leak inadvertently introduced during
simplification of cell_release_singleton() in commit
6f94a4c45a6f744383f9f695dde019998db3df55 ("dm thin: fix stacked bi_next
usage").

A cell's hlist_del() must be accompanied by a mempool_free().
Use __cell_release() to do this, like before.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c