Whamcloud - gitweb
LU-2071 lprocfs: Memory leak on lustre proc access
authorOleg Drokin <green@whamcloud.com>
Tue, 2 Oct 2012 02:55:27 +0000 (22:55 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 5 Oct 2012 20:23:39 +0000 (16:23 -0400)
commit1119c6a4ad355764be5cc9906adc7e06ded4c8b2
treea53c779389c3c5a8af320de5f2071b1ff6ce5997
parentc52d48bf7838c8d9a886a8865017e150e294d91c
LU-2071 lprocfs: Memory leak on lustre proc access

Make __LPROC_SEQ_FOPS to call lprocfs_single_release in release so that
the memory allocated in single_open to be freed.
Rename some of the auto-named methods to better reflect on the nature
of the underlying calls.
The previous code used to leak 32 bytes per every lustre proc file open
that uses lprocfs_..._seq_open primitive.

Change-Id: I08cc1bbb28af444f3fa5e903e38fd4a16dc4c79b
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/4150
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
lustre/include/lprocfs_status.h
lustre/obdclass/lprocfs_status.c