Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/Thread: pthread_attr_destroy(thread_attr) when done with it #5433

Merged
merged 1 commit into from Aug 19, 2015

Conversation

qiankunzheng
Copy link

When a thread attributes object is no longer required, it should be destroyed using the
pthread_attr_destroy() function. Destroying a thread attributes object has no effect on threads that were created using that object.
Fixes: #12570
Signed-off-by: zqkqkz zheng.qiankun@h3c.com

@qiankunzheng qiankunzheng changed the title When a thread attributes object is no longer required, it should be d…dfsaf das fds When a thread attributes object is no longer required, it should be destroyed using the pthread_attr_destroy() function. Destroying a thread attributes object has no effect on threads that were created using that object. Jul 31, 2015
@qiankunzheng qiankunzheng changed the title When a thread attributes object is no longer required, it should be destroyed using the pthread_attr_destroy() function. Destroying a thread attributes object has no effect on threads that were created using that object. Add pthread_attr_destroy () function to Thread.cc file Jul 31, 2015
@tchaikov
Copy link
Contributor

@zqkkqz, could you please prefix the title of your commit message with "common/Thread: ". and make it more brief? for example:

pthread_attr_destroy(thread_attr) when done with it

and it would be ideal if you can file a ticket in http://tracker.ceph.com, and connect this pull request to it using the notation of

Fixes: #ticket_number

you can find more examples using git log.

thanks.

@tchaikov
Copy link
Contributor

note: this fix also applies to hammer and firefly

@tchaikov
Copy link
Contributor

BTW, you might need to rebase your change against master after #5337 is merged.

@ghost
Copy link

ghost commented Jul 31, 2015

the failed bot run on ubuntu is fixed in master. see #5432

/usr/bin/ld: ./.libs/libkrbd.a(buffer.o): undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

@qiankunzheng qiankunzheng changed the title Add pthread_attr_destroy () function to Thread.cc file common/Thread: pthread_attr_destroy(thread_attr) when done with it Aug 3, 2015
@qiankunzheng
Copy link
Author

@tchaikov
Hi, I had done some appropriate modification in the Thread.cc of common module according to the requirements please review, thank you very much

@tchaikov
Copy link
Contributor

tchaikov commented Aug 6, 2015

@zqkkqz could you rebase your change against master again, to resolve the conflicts?

When a thread attributes object is no longer required, it should be destroyed using the
pthread_attr_destroy() function. Destroying a thread attributes object has no effect on threads that were created using that object.

Fixes: ceph#12570
Signed-off-by: zqkqkz zheng.qiankun@h3c.com
@tchaikov
Copy link
Contributor

tchaikov commented Aug 7, 2015

Reviewed-by: Kefu Chai <kchai@redhat.com> after qa run.

@cxwshawn
Copy link

@tchaikov Hi, since review has been done, so when merge can be done ?

@liewegas liewegas added this to the infernalis milestone Aug 12, 2015
@tchaikov
Copy link
Contributor

@cxwshawn sorry for the latency. once it is confirmed by our test suites. it's good to merge.

liewegas added a commit that referenced this pull request Aug 19, 2015
common/Thread: pthread_attr_destroy(thread_attr) when done with it

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit 49c3119 into ceph:master Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants