summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-01-30 10:06:08 +0000
committerphk <phk@FreeBSD.org>2001-01-30 10:06:08 +0000
commit3ed24cd17e5913cd7a4d714ecd09d32d4605763b (patch)
treec7b4aa34723b26fd4b5d33fcdf72eed73ed473dc
parentd692564caf2a8d032840da3aff642bbd4a3f59b8 (diff)
downloadFreeBSD-src-3ed24cd17e5913cd7a4d714ecd09d32d4605763b.zip
FreeBSD-src-3ed24cd17e5913cd7a4d714ecd09d32d4605763b.tar.gz
Add a BUF_KERNPROC() in the BIO_DELETE path.
This seems to fix the problem which md(4) backed filesystems exposed.
-rw-r--r--sys/fs/specfs/spec_vnops.c1
-rw-r--r--sys/miscfs/specfs/spec_vnops.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index 6b33df4..3b9536d 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -497,6 +497,7 @@ spec_freeblks(ap)
bp->b_blkno = ap->a_addr;
bp->b_offset = dbtob(ap->a_addr);
bp->b_bcount = ap->a_length;
+ BUF_KERNPROC(bp);
DEV_STRATEGY(bp, 0);
return (0);
}
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index 6b33df4..3b9536d 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -497,6 +497,7 @@ spec_freeblks(ap)
bp->b_blkno = ap->a_addr;
bp->b_offset = dbtob(ap->a_addr);
bp->b_bcount = ap->a_length;
+ BUF_KERNPROC(bp);
DEV_STRATEGY(bp, 0);
return (0);
}
OpenPOWER on IntegriCloud