patch-2.4.25 linux-2.4.25/fs/jfs/jfs_txnmgr.c

Next file: linux-2.4.25/fs/jfs/namei.c
Previous file: linux-2.4.25/fs/jfs/jfs_logmgr.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/fs/jfs/jfs_txnmgr.c linux-2.4.25/fs/jfs/jfs_txnmgr.c
@@ -2828,8 +2828,7 @@
 		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)
@@ -3037,8 +3036,7 @@
 	} 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)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)