Skip to content

Mutex: fix memory leak in lockdep _register - #4760

Merged
tchaikov merged 1 commit into
ceph:masterfrom
ketor:fix_mutex_memory_leak
Jun 2, 2015
Merged

tchaikov merged 1 commit into
ceph:masterfrom
ketor:fix_mutex_memory_leak

Conversation

@ketor

@ketor ketor commented May 26, 2015

Copy link
Copy Markdown
Contributor

Need pthread_mutexattr_destroy after pthread_mutexattr_init,
or there will be memory leak.

Signed-off-by: Ketor Meng [email protected]

@tchaikov

Copy link
Copy Markdown
Contributor

@ketor good catch! could you add a title for your commit message? something like:

Mutex: fix leak of pthread_mutexattr

will do the trick.

and do you mind creating an issue in http://tracker.ceph.com, since this issue is a critical fix. would be great if we are able to track it in the redmine. thanks =)

@ketor
ketor force-pushed the fix_mutex_memory_leak branch from 2cbb222 to 464f158 Compare May 26, 2015 14:16
@ketor

ketor commented May 26, 2015

Copy link
Copy Markdown
Contributor Author

@tchaikov

Copy link
Copy Markdown
Contributor

@ketor, and could you also connect the ticket with your commit using the commit message? you could put following line right before the "Signed-off-by" line.

Fixes: #111762

and other than this, the fix looks great.

Need pthread_mutexattr_destroy after pthread_mutexattr_init

Fixes: #111762
Signed-off-by: Ketor Meng <[email protected]>
@ketor
ketor force-pushed the fix_mutex_memory_leak branch from 464f158 to 2b23327 Compare May 26, 2015 14:42
@ketor

ketor commented May 26, 2015

Copy link
Copy Markdown
Contributor Author

@tchaikov please review again, thanks!

@tchaikov tchaikov changed the title Fix Memory Leak in lockdep _register Mutex: fix memory leak in lockdep _register May 26, 2015
@tchaikov

tchaikov commented Jun 2, 2015

Copy link
Copy Markdown
Contributor

tested at http://pulpito.ceph.redhat.com/kchai-2015-06-01_00:05:54-rados-wip-kefu-testing---basic-magna, all of the tests but 1 passed.
and the failed test passed at http://pulpito.ceph.redhat.com/kchai-2015-06-02_05:49:24-rados-wip-kefu-testing---basic-magna

$ teuthology-suite --verbose --priority 101 --suite rados --subset 0/20 --suite-branch master --machine-type magna  --distro ubuntu --email [email protected] --ceph wip-kefu-testing
$ teuthology-suite --filter="rados/thrash/{0-size-min-size-overrides/3-size-2-min-size.yaml 1-pg-log-overrides/short_pg_log.yaml clusters/fixed-2.yaml fs/xfs.yaml msgr-failures/fastclose.yaml thrashers/mapgap.yaml workloads/rgw_snaps.yaml}" --priority 101 --suite rados --subset 0/18 --suite-branch master --machine-type magna --distro ubuntu --email [email protected] --ceph wip-kefu-testing

tchaikov added a commit that referenced this pull request Jun 2, 2015
Mutex: fix memory leak in lockdep _register

Reviewed-by: Kefu Chai <[email protected]>
@tchaikov
tchaikov merged commit aa3d269 into ceph:master Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants