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) ...@@ -2230,8 +2230,7 @@ int jfsIOWait(void *arg)
} while (!jfs_stop_threads); } while (!jfs_stop_threads);
jfs_info("jfsIOWait being killed!"); jfs_info("jfsIOWait being killed!");
complete(&jfsIOwait); complete_and_exit(&jfsIOwait, 0);
return 0;
} }
/* /*
......
...@@ -2842,8 +2842,7 @@ int jfs_lazycommit(void *arg) ...@@ -2842,8 +2842,7 @@ int jfs_lazycommit(void *arg)
jfs_err("jfs_lazycommit being killed w/pending transactions!"); jfs_err("jfs_lazycommit being killed w/pending transactions!");
else else
jfs_info("jfs_lazycommit being killed\n"); jfs_info("jfs_lazycommit being killed\n");
complete(&jfsIOwait); complete_and_exit(&jfsIOwait, 0);
return 0;
} }
void txLazyUnlock(struct tblock * tblk) void txLazyUnlock(struct tblock * tblk)
...@@ -3044,8 +3043,7 @@ int jfs_sync(void *arg) ...@@ -3044,8 +3043,7 @@ int jfs_sync(void *arg)
} while (!jfs_stop_threads); } while (!jfs_stop_threads);
jfs_info("jfs_sync being killed"); jfs_info("jfs_sync being killed");
complete(&jfsIOwait); complete_and_exit(&jfsIOwait, 0);
return 0;
} }
#if defined(CONFIG_PROC_FS) && defined(CONFIG_JFS_DEBUG) #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