CVS log for src/sys/geom/journal/g_journal.c
Up to [FreeBSD] / src / sys / geom / journal
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Feb 6 11:04:36 2012 UTC (4 days, 20 hours ago) by kib
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -10 lines
SVN rev 231075 on 2012-02-06 11:04:36Z by kib Current implementations of sync(2) and syncer vnode fsync() VOP uses mnt_noasync counter to temporary remove MNTK_ASYNC mount option, which is needed to guarantee a synchronous completion of the initiated i/o before syscall or VOP return. Global removal of MNTK_ASYNC option is harmful because not only i/o started from corresponding thread becomes synchronous, but all i/o is synchronous on the filesystem which is initiated during sync(2) or syncer activity. Instead of removing MNTK_ASYNC from mnt_kern_flag, provide a local thread flag to disable async i/o for current thread only. Use the opportunity to move DOINGASYNC() macro into sys/vnode.h and consistently use it through places which tested for MNTK_ASYNC. Some testing demonstrated 60-70% improvements in run time for the metadata-intensive operations on async-mounted UFS volumes, but still with great deviation due to other reasons. Reviewed by: mckusick Tested by: scottl MFC after: 2 weeks
Revision 1.26.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (3 months ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.26.2.1: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Nov 7 15:43:11 2011 UTC (3 months ago) by ed
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -3 lines
SVN rev 227309 on 2011-11-07 15:43:11Z by ed Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.22.2.3: download - view: text, markup, annotated - select for diffs
Fri Jun 10 09:12:09 2011 UTC (8 months ago) by mav
Branches: RELENG_8
Diff to: previous 1.22.2.2: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.2: +2 -1 lines
SVN rev 222920 on 2011-06-10 09:12:09Z by mav MFC r221101: Implement relaxed comparision for hardcoded provider names to make it ignore adX/adaY difference in both directions to simplify migration to the CAM-based ATA or back.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed May 4 18:06:40 2011 UTC (9 months, 1 week ago) by ae
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +0 -1 lines
SVN rev 221449 on 2011-05-04 18:06:40Z by ae Removed KASSERT, g_new_providerf() can not fail. MFC after: 1 week
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Apr 27 00:10:26 2011 UTC (9 months, 2 weeks ago) by mav
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -1 lines
SVN rev 221101 on 2011-04-27 00:10:26Z by mav Implement relaxed comparision for hardcoded provider names to make it ignore adX/adaY difference in both directions to simplify migration to the CAM-based ATA or back.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Feb 25 10:24:35 2011 UTC (11 months, 2 weeks ago) by netchild
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -0 lines
SVN rev 219029 on 2011-02-25 10:24:35Z by netchild Add some FEATURE macros for various GEOM classes. No FreeBSD version bump, the userland application to query the features will be committed last and can serve as an indication of the availablility if needed. Sponsored by: Google Summer of Code 2010 Submitted by: kibab Reviewed by: silence on geom@ during 2 weeks X-MFC after: to be determined in last commit with code from this project
Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Wed Feb 2 12:24:53 2011 UTC (12 months, 1 week ago) by kib
Branches: RELENG_8
Diff to: previous 1.22.2.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.1: +1 -0 lines
SVN rev 218188 on 2011-02-02 12:24:53Z by kib MFC r217880: Treat async buffer writes from the gjournal switcher thread the same as from syncer. We shall not sleep on running buffer space when suspending.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jan 26 10:34:21 2011 UTC (12 months, 2 weeks ago) by kib
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -0 lines
SVN rev 217880 on 2011-01-26 10:34:21Z by kib Treat async buffer writes from the gjournal switcher thread the same as from syncer. We shall not sleep on running buffer space when suspending. Reproduced and tested by: pho PR: kern/154228 MFC after: 1 week
Revision 1.13.2.2.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 3 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.13.2.2: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.2: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.22.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 3 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.22.2.1: preferred, colored; next MAIN 1.22.2.2: preferred, colored
Changes since revision 1.22.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.22.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.22.2.1: preferred, colored; next MAIN 1.22.2.2: preferred, colored
Changes since revision 1.22.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.13.2.2.4.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.13.2.2: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.2: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.22.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.22.2.1: preferred, colored; next MAIN 1.22.2.2: preferred, colored
Changes since revision 1.22.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jun 30 14:34:06 2009 UTC (2 years, 7 months ago) by trasz
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -0 lines
SVN rev 195195 on 2009-06-30 14:34:06Z by trasz Make gjournal work with kernel compiled with "options DIAGNOSTIC". Previously, it would panic immediately. Reviewed by: pjd Approved by: re (kib)
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon May 11 15:33:26 2009 UTC (2 years, 9 months ago) by attilio
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -1 lines
SVN rev 191990 on 2009-05-11 15:33:26Z by attilio Remove the thread argument from the FSD (File-System Dependent) parts of the VFS. Now all the VFS_* functions and relating parts don't want the context as long as it always refers to curthread. In some points, in particular when dealing with VOPs and functions living in the same namespace (eg. vflush) which still need to be converted, pass curthread explicitly in order to retain the old behaviour. Such loose ends will be fixed ASAP. While here fix a bug: now, UFS_EXTATTR can be compiled alone without the UFS_EXTATTR_AUTOSTART option. VFS KPI is heavilly changed by this commit so thirdy parts modules needs to be recompiled. Bump __FreeBSD_version in order to signal such situation.
Revision 1.13.2.2.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.13.2.2: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.2: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Apr 10 04:08:34 2009 UTC (2 years, 10 months ago) by thompsa
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -1 lines
SVN rev 190878 on 2009-04-10 04:08:34Z by thompsa Revert r190676,190677 The geom and CAM changes for root_hold are the wrong solution for USB design quirks. Requested by: scottl
Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 6 17:33:35 2009 UTC (2 years, 10 months ago) by trasz
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +16 -0 lines
SVN rev 190782 on 2009-04-06 17:33:35Z by trasz MFC r185693: Make it possible to use gjournal for the root filesystem. Previously, an unclean shutdown would make it impossible to mount rootfs at boot. Approved by: re (kib)
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Apr 3 19:46:12 2009 UTC (2 years, 10 months ago) by thompsa
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -1 lines
SVN rev 190676 on 2009-04-03 19:46:12Z by thompsa Add a how argument to root_mount_hold() so it can be passed NOWAIT and be called in situations where sleeping isnt allowed.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 6 11:33:10 2008 UTC (3 years, 2 months ago) by trasz
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +16 -0 lines
SVN rev 185693 on 2008-12-06 11:33:10Z by trasz Make it possible to use gjournal for the root filesystem. Previously, an unclean shutdown would make it impossible to mount rootfs at boot. PR: kern/128529 Reviewed by: pjd Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation
Revision 1.13.2.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.13.2.1: preferred, colored; next MAIN 1.13.2.2: preferred, colored
Changes since revision 1.13.2.1: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Nov 2 10:15:42 2008 UTC (3 years, 3 months ago) by attilio
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -1 lines
SVN rev 184554 on 2008-11-02 10:15:42Z by attilio Improve VFS locking: - Implement real draining for vfs consumers by not relying on the mnt_lock and using instead a refcount in order to keep track of lock requesters. - Due to the change above, remove the mnt_lock lockmgr because it is now useless. - Due to the change above, vfs_busy() is no more linked to a lockmgr. Change so its KPI by removing the interlock argument and defining 2 new flags for it: MBF_NOWAIT which basically replaces the LK_NOWAIT of the old version (which was unlinked from the lockmgr alredy) and MBF_MNTLSTLOCK which provides the ability to drop the mountlist_mtx once the mnt interlock is held (ability still desired by most consumers). - The stub used into vfs_mount_destroy(), that allows to override the mnt_ref if running for more than 3 seconds, make it totally useless. Remove it as it was thought to work into older versions. If a problem of "refcount held never going away" should appear, we will need to fix properly instead than trust on such hackish solution. - Fix a bug where returning (with an error) from dounmount() was still leaving the MNTK_MWAIT flag on even if it the waiters were actually woken up. Just a place in vfs_mount_destroy() is left because it is going to recycle the structure in any case, so it doesn't matter. - Remove the markercnt refcount as it is useless. This patch modifies VFS ABI and breaks KPI for vfs_busy() so manpages and __FreeBSD_version will be modified accordingly. Discussed with: kib Tested by: pho
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Aug 31 14:26:08 2008 UTC (3 years, 5 months ago) by attilio
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -5 lines
SVN rev 182542 on 2008-08-31 14:26:08Z by attilio Decontextualize vfs_busy(), vfs_unbusy() and vfs_mount_alloc() functions. Manpages are updated accordingly. Tested by: Diego Sardina <siarodx at gmail dot com>
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 20 21:17:40 2008 UTC (3 years, 7 months ago) by lulf
Branches: RELENG_7
CVS tags: RELENG_7_1_BP
Branch point for: RELENG_7_1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -5 lines
SVN rev 179899 on 2008-06-20 21:17:40Z by lulf MFC r179897: - Fix spelling errors. Approved by: kib (mentor) PR: kern/124788 Submitted by: Hywel Mallett <Hywel -at- hmallett.co.uk>
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Jun 20 19:48:18 2008 UTC (3 years, 7 months ago) by lulf
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -5 lines
SVN rev 179897 on 2008-06-20 19:48:18Z by lulf - Fix spelling errors. Approved by: kib (mentor) PR: kern/124788 Submitted by: Hywel Mallett <Hywel -at- hmallett.co.uk>
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Oct 20 23:23:19 2007 UTC (4 years, 3 months ago) by julian
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
Rename the kthread_xxx (e.g. kthread_create()) calls to kproc_xxx as they actually make whole processes. Thos makes way for us to add REAL kthread_create() and friends that actually make theads. it turns out that most of these calls actually end up being moved back to the thread version when it's added. but we need to make this cosmetic change first. I'd LOVE to do this rename in 7.0 so that we can eventually MFC the new kthread_xxx() calls.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Jun 5 00:00:52 2007 UTC (4 years, 8 months ago) by jeff
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Commit 14/14 of sched_lock decomposition. - Use thread_lock() rather than sched_lock for per-thread scheduling sychronization. - Use the per-process spinlock rather than the sched_lock for per-process scheduling synchronization. Tested by: kris, current@ Tested on: i386, amd64, ULE, 4BSD, libthr, libkse, PREEMPTION, etc. Discussed with: kris, attilio, kmacy, jhb, julian, bde (small parts each)
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jun 4 18:25:06 2007 UTC (4 years, 8 months ago) by dwmalone
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Despite several examples in the kernel, the third argument of sysctl_handle_int is not sizeof the int type you want to export. The type must always be an int or an unsigned int. Remove the instances where a sizeof(variable) is passed to stop people accidently cut and pasting these examples. In a few places this was sysctl_handle_int was being used on 64 bit types, which would truncate the value to be exported. In these cases use sysctl_handle_quad to export them and change the format to Q so that sysctl(1) can still print them.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Apr 6 12:53:54 2007 UTC (4 years, 10 months ago) by pjd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
Sysctl description is not a format string, so one % is enough.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Mar 22 15:42:13 2007 UTC (4 years, 10 months ago) by pjd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Add missing \n.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Dec 2 09:10:29 2006 UTC (5 years, 2 months ago) by pjd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -3 lines
Softc may be NULL in g_journal_orphan(), so don't be surprised.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Nov 2 16:24:18 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -0 lines
Fix ia64 build breakage.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Nov 2 09:14:18 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -5 lines
- Use g_duplicate_bio() instead of g_clone_bio(), so there memory is allocated with M_WAITOK flag. - Check 'buf' instead of 'error' so Prevent is not confused. CID: 1562, 1563 Found by: Coverity Prevent analysis tool
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Nov 2 00:37:39 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -0 lines
Grr, fix one more build breakage.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Nov 1 22:16:52 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -1 lines
Change spaces to tabs where needed.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Nov 1 14:09:59 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +0 -1 lines
Forgot to remove this line. Reported by: maxim
Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Nov 1 09:37:11 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +12 -4 lines
Update the code to the current sync(2) version: - Do not modify mnt_flag without mount interlock held. - Do not touch MNT_ASYNC flag, as this can lead to a race with nmount(2). Pointed out by: tegge Reviewed by: tegge
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Nov 1 01:19:13 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -35 lines
Remove debugging code I accidentally committed.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Oct 31 21:31:00 2006 UTC (5 years, 3 months ago) by pjd
Branches: MAIN
Add gjournal GEOM class (kernel side), which implements block level journaling and can be tought about marking file system as clean before doing journal switch, which easly allows to add journaling to file systems that don't have this feature. Sponsored by: home.pl
