projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbfebdb
)
idletime: fix another missing unlock on error
author
Jens Axboe
<axboe@fb.com>
Tue, 15 Apr 2014 14:25:16 +0000
(08:25 -0600)
committer
Jens Axboe
<axboe@fb.com>
Tue, 15 Apr 2014 14:25:16 +0000
(08:25 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
idletime.c
patch
|
blob
|
blame
|
history
diff --git
a/idletime.c
b/idletime.c
index 8d23154e54c94ee1ae5af8b05582fd2ed90dfc46..a366d2b16311bf6ec1b8e8d50fb84c44edc71eda 100644
(file)
--- a/
idletime.c
+++ b/
idletime.c
@@
-73,8
+73,10
@@
static void *idle_prof_thread_fn(void *data)
pthread_mutex_lock(&ipt->init_lock);
/* exit if any other thread failed to start */
- if (ipc.status == IDLE_PROF_STATUS_ABORT)
+ if (ipc.status == IDLE_PROF_STATUS_ABORT) {
+ pthread_mutex_unlock(&ipt->init_lock);
return NULL;
+ }
retval = set_cpu_affinity(ipt);
if (retval == -1) {