Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/ufs/lfs Pull up revision 1.31 (requested by persean...
details: https://anonhg.NetBSD.org/src/rev/e50fe0a6378a
branches: netbsd-1-6
changeset: 528017:e50fe0a6378a
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 20 03:51:23 2002 +0000
description:
Pull up revision 1.31 (requested by perseant in ticket #325):
For synchronous writes, keep separate i/o counters for each write, so
processes don't have to wait for one another to finish (e.g., nfsd seems
to be a little happier now, though I haven't measured the difference).
Synchronous checkpoints, however, must always wait for all i/o to finish.
Take the contents of the callback functions and have them run in thread
context instead (aiodoned thread). lfs_iocount no longer has to be
protected in splbio(), and quite a bit less of the segment construction
loop needs to be in splbio() as well.
If lfs_markv is handed a block that is not the correct size according to
the inode, refuse to process it. (Formerly it was extended to the "correct"
size.) This is possibly more prone to deadlock, but less prone to corruption.
lfs_segclean now outright refuses to clean segments that appear to have live
bytes in them. Again this may be more prone to deadlock but avoids
corruption.
Replace ufsspec_close and ufsfifo_close with LFS equivalents; this means
that no UFS functions need to know about LFS_ITIMES any more. Remove
the reference from ufs/inode.h.
Tested on i386, test-compiled on alpha.
diffstat:
sys/ufs/lfs/lfs_extern.h | 56 ++++++++++++++++++++++++-----------------------
1 files changed, 29 insertions(+), 27 deletions(-)
diffs (70 lines):
diff -r c088a48b2754 -r e50fe0a6378a sys/ufs/lfs/lfs_extern.h
--- a/sys/ufs/lfs/lfs_extern.h Thu Jun 20 03:51:13 2002 +0000
+++ b/sys/ufs/lfs/lfs_extern.h Thu Jun 20 03:51:23 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_extern.h,v 1.30 2002/05/14 20:03:53 perseant Exp $ */
+/* $NetBSD: lfs_extern.h,v 1.30.4.1 2002/06/20 03:51:23 lukem Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -204,32 +204,34 @@
void lfs_itimes(struct inode *, struct timespec *, struct timespec *,
struct timespec *);
-int lfs_balloc (void *);
-int lfs_valloc (void *);
-int lfs_vfree (void *);
-int lfs_bwrite (void *);
-int lfs_update (void *);
-int lfs_truncate(void *);
-int lfs_blkatoff(void *);
-int lfs_fsync (void *);
-int lfs_symlink (void *);
-int lfs_mknod (void *);
-int lfs_create (void *);
-int lfs_mkdir (void *);
-int lfs_read (void *);
-int lfs_remove (void *);
-int lfs_rmdir (void *);
-int lfs_link (void *);
-int lfs_rename (void *);
-int lfs_getattr (void *);
-int lfs_setattr (void *);
-int lfs_close (void *);
-int lfs_inactive(void *);
-int lfs_reclaim (void *);
-int lfs_write (void *);
-int lfs_whiteout(void *);
-int lfs_getpages(void *);
-int lfs_putpages(void *);
+int lfs_balloc (void *);
+int lfs_valloc (void *);
+int lfs_vfree (void *);
+int lfs_bwrite (void *);
+int lfs_update (void *);
+int lfs_truncate (void *);
+int lfs_blkatoff (void *);
+int lfs_fsync (void *);
+int lfs_symlink (void *);
+int lfs_mknod (void *);
+int lfs_create (void *);
+int lfs_mkdir (void *);
+int lfs_read (void *);
+int lfs_remove (void *);
+int lfs_rmdir (void *);
+int lfs_link (void *);
+int lfs_rename (void *);
+int lfs_getattr (void *);
+int lfs_setattr (void *);
+int lfs_close (void *);
+int lfsspec_close(void *);
+int lfsfifo_close(void *);
+int lfs_inactive (void *);
+int lfs_reclaim (void *);
+int lfs_write (void *);
+int lfs_whiteout (void *);
+int lfs_getpages (void *);
+int lfs_putpages (void *);
__END_DECLS
extern int lfs_mount_type;
Home |
Main Index |
Thread Index |
Old Index