Commit 469c5855 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: Threads should exit with complete_and_exit

parent d3949d94
......@@ -2230,8 +2230,7 @@ int jfsIOWait(void *arg)
} while (!jfs_stop_threads);
jfs_info("jfsIOWait being killed!");
complete(&jfsIOwait);
return 0;
complete_and_exit(&jfsIOwait, 0);
}
/*
......
......@@ -2842,8 +2842,7 @@ int jfs_lazycommit(void *arg)
jfs_err("jfs_lazycommit being killed w/pending transactions!");
else
jfs_info("jfs_lazycommit being killed\n");
complete(&jfsIOwait);
return 0;
complete_and_exit(&jfsIOwait, 0);
}
void txLazyUnlock(struct tblock * tblk)
......@@ -3044,8 +3043,7 @@ int jfs_sync(void *arg)
} while (!jfs_stop_threads);
jfs_info("jfs_sync being killed");
complete(&jfsIOwait);
return 0;
complete_and_exit(&jfsIOwait, 0);
}
#if defined(CONFIG_PROC_FS) && defined(CONFIG_JFS_DEBUG)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment