ztest_resume should be ztest_resume_thread in pthread_create()

Fix an accidental bug introducted by the pthreads changes.  When creating
a resume thread the handler function was accidentally changed from
ztest_resume to ztest_resume_thread.  There's a decent chance this
may explain some/all of the crashes that have be observed running
ztest.  This issue was exposed and easily fixed once the -Wno-unused
check was removed from the build system.  Happily at least one real
bug fix resulted from that cleanup.
This commit is contained in:
Brian Behlendorf 2009-03-12 09:13:40 -07:00
parent 15f5ddebdf
commit 9de6723b83
1 changed files with 1 additions and 1 deletions

View File

@ -3114,7 +3114,7 @@ ztest_run(char *pool)
/* /*
* Create a thread to periodically resume suspended I/O. * Create a thread to periodically resume suspended I/O.
*/ */
VERIFY(pthread_create(&resume_tid, NULL, ztest_resume, spa) == 0); VERIFY(pthread_create(&resume_tid, NULL, ztest_resume_thread, spa)==0);
/* /*
* Verify that we can safely inquire about about any object, * Verify that we can safely inquire about about any object,