Skip to content

Instantly share code, notes, and snippets.

From acb30a8ca6fc2e5cee11afd3c3e3903336b2c382 Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Thu, 19 May 2016 06:56:33 +0300
Subject: [PATCH 1/1] Enable somewhat excessive diagnostic asserts
They do not trigger panics.
---
sys/kern/vfs_wapbl.c | 2 --
1 file changed, 2 deletions(-)
From 6a6fc08c59d07446c7133941a2b28593f02f48cc Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Thu, 19 May 2016 03:01:28 +0300
Subject: [PATCH 1/1] Simplify buffer error handling case.
Don't bother advancing the log when errors occur.
---
sys/kern/vfs_wapbl.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
From b38c8f160e90c033408fe9dd3073e1f2151b5349 Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Thu, 19 May 2016 02:32:42 +0300
Subject: [PATCH 1/1] Replace deprecated disabled code by comment
describing what it intends to do, and why it won't work yet
---
sys/kern/vfs_wapbl.c | 34 ++++------------------------------
1 file changed, 4 insertions(+), 30 deletions(-)
@coypoop
coypoop / gist:5a54dae060a56f5936352241682cfdab
Last active May 16, 2016 18:12
Simplify UFS_WAPBL_BEGIN/END.
From 4b162937d04648240f7931c36394e292be36ac02 Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Mon, 16 May 2016 18:24:56 +0300
Subject: [PATCH 1/3] Get rid of UFS_WAPBL_BEGIN1/END1
ufs makeinode no longer releases dvp, so incrementing the
usecount for wapbl is unnecessary.
---
sys/ufs/ufs/ufs_vnops.c | 16 ++++++++--------
sys/ufs/ufs/ufs_wapbl.h | 5 -----
@coypoop
coypoop / gist:6d748ab392aa538b6ed2b65e20d25b64
Created May 16, 2016 08:42
More questionable change, as UFS_WAPBL_END1 is used a few more times.
From a790bb7b448209758abac889eaeb76316419f86a Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Mon, 16 May 2016 11:39:41 +0300
Subject: [PATCH 1/1] Simplify ufs_wapbl_end2
Similar to ufs_wapbl_begin2, this function is rarely called with vnodes,
and when it does - it's only with one parameter.
The only thing we do with the vnode when it's rarely used, is decrement
the usecount. do this explicitly instead.
@coypoop
coypoop / gist:a0b065271149e235440e1a83411f87c6
Last active May 16, 2016 08:30
Simplify ufs_wapbl_begin2
From 504e2b217ddf5b8db9f42b2eb6672e3b2d8a1883 Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Mon, 16 May 2016 11:29:58 +0300
Subject: [PATCH 1/1] Simplify ufs_wapbl_begin2
The purpose of the vnode parameters in this function is to increase
usecount (only).
This is only used by ufs_symlink (where it is called UFS_WAPBL_BEGIN1),
otherwise it is called with NULL, NULL as vnodes (UFS_WAPBL_BEGIN).
From d51a64a5e9a15169949b8f1442c79060c157536d Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
Date: Wed, 11 May 2016 13:08:06 +0300
Subject: [PATCH 1/1] assert wl_mtx held in wapbl_transaction_len (debug only)
---
sys/kern/vfs_wapbl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/kern/vfs_wapbl.c b/sys/kern/vfs_wapbl.c
#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/kthread.h>
#define NTHREADS 4
#define MAX_ITERATIONS 5000
static volatile int elements[NTHREADS] = {0};
you've forgotten to apply this.
I suspected it is because you only have the ones that got all broken up.
this appears to apply well.
Index: sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c
=====================================================================
RCS file: /cvsroot/src/sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c,v
retrieving revision 1.10
diff -p -u -r1.10 nouveau_engine_device_base.c
--- sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c 13 Apr 2016 08:50:51 -0000 1.10
enable nouveau in i386 ALL config.
it's already enabled in GENERIC.
small fixes:
nouveaufbbus -> nouveaufbbus? to fix build failure (same as GENERIC)
remove option NV_DEBUG because it is redefined in the code. (doesn't exist in amd64 ALL, either)
--- /home/fly/src/sys/arch/i386/conf/ALL 2016-05-08 20:15:20.817234266 +0300
+++ ./sys/arch/i386/conf/ALL 2016-05-08 20:15:11.060219292 +0300
@@ -610,8 +610,8 @@