Skip to content

Instantly share code, notes, and snippets.

View mcgrof's full-sized avatar

Luis Chamberlain mcgrof

View GitHub Profile
diff --git a/block/blk-map.c b/block/blk-map.c
index d2f22744b3d1..dbaae6b10050 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -138,6 +138,9 @@ static int bio_copy_user_iov(struct request *rq, struct rq_map_data *map_data,
int nr_pages;
unsigned int len = iter->count;
unsigned int offset = map_data ? offset_in_page(map_data->offset) : 0;
+ struct request_queue *q = rq->q;
+ const struct queue_limits *lim = &q->limits;
fio --name=nvme-test --ioengine=io_uring_cmd --filename=/dev/ng3n1 --size=2M --bs=2M --iodepth=1 --rw=write
BUG: unable to handle page fault for address: 000000300000002c
[54217.435580] #PF: supervisor read access in kernel mode
[54217.438270] #PF: error_code(0x0000) - not-present page
[54217.441323] PGD 0 P4D 0
[54217.442815] Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
[54217.445521] CPU: 0 UID: 0 PID: 2163 Comm: fio Not tainted 6.14.0-rc4-bhdev+ #29
[54217.449090] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 2024.11-5 01/28/2025
[54217.453053] RIP: 0010:__blk_rq_map_sg+0xce/0x400
diff --git a/fs/buffer.c b/fs/buffer.c
index cc8452f60251..5c7aa4a2b464 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -2350,6 +2350,18 @@ bool block_is_partially_uptodate(struct folio *folio, size_t from, size_t count)
}
EXPORT_SYMBOL(block_is_partially_uptodate);
+static void folio_zero_bh(struct folio *folio, struct buffer_head *head,
+ struct buffer_head *bh)
#!/usr/bin/python3
import json
import csv
import sys
import os
def load_json_data(json_file):
with open(json_file, 'r') as f:
return json.load(f)
mcgrof@debian12-xfs-reflink-16k-4ks /data/plot-sysbench (git::main)$ sudo blkalgn -d nvme2n1 --json-output blkalgn-xfs-16k-reflink-doublewrite.json
In file included from /virtual/main.c:2:
In file included from include/uapi/linux/ptrace.h:183:
In file included from arch/x86/include/asm/ptrace.h:175:
In file included from arch/x86/include/asm/paravirt_types.h:12:
In file included from arch/x86/include/asm/nospec-branch.h:15:
arch/x86/include/asm/current.h:47:10: warning: multiple identical address spaces specified for type [-Wduplicate-decl-specifier]
return this_cpu_read_const(const_pcpu_hot.current_task);
^
arch/x86/include/asm/percpu.h:577:36: note: expanded from macro 'this_cpu_read_const'
root@bdev-xfs-reflink-32k ~ # cat /sys/block/nvme13n1/queue/logical_block_size
32768
root@bdev-xfs-reflink-32k ~ # cat /sys/block/nvme13n1/queue/physical_block_size
2097152
root@bdev-xfs-reflink-32k ~ # mkfs.xfs -f -b size=64k -s size=32k /dev/nvme13n1
meta-data=/dev/nvme13n1 isize=512 agcount=4, agsize=409600 blks
= sectsz=32768 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=1
= reflink=1 bigtime=1 inobtcount=1 nrext64=1
data = bsize=65536 blocks=1638400, imaxpct=25
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: Linux version 6.10.0-rc2 (mcgrof@some-yomoma) (gcc (Debian 13.2.0-23) 13.2.0, GNU ld (GNU Binutils for Debian) 2.42) #8 SMP PREEMPT_DYNAMIC Sat Jun 8 13:48:23 PDT 2024
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-6.10.0-rc2 root=UUID=ddf91058-656c-4606-806a-8a4a9d31676c ro console=tty0 console=tty1 console=ttyS0,115200n8 console=ttyS0,115200n8
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: x86/split lock detection: #DB: warning on user-space bus_locks
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-provided physical RAM map:
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
Jun 08 13:50:56 linus-xfs-reflink-dir-bsize-8k kernel: BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
Jun 08 13:50:
With CONFIG_PROVE_LOCKING=y MAX_LOCKDEP_CHAIN_HLOCKS is too low on the new generic/749
which tests fsstress against compaction
[ 326.567430] run fstests generic/749 at 2024-06-07 16:48:23
[ 332.684652] XFS (loop5): Mounting V5 Filesystem b3f4eab9-b91d-4a31-8024-49c02f460615
[ 332.851035] XFS (loop5): Ending clean mount
[ 1546.223139] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
[ 1546.224941] turning off the locking correctness validator.
[ 1546.226788] Please attach the output of /proc/lock_stat to the bug report
[ 1546.228971] CPU: 2 PID: 2479 Comm: kworker/u35:12 Not tainted 6.10.0-rc2 #6
generic/531 runs first without issues for 9 times, then:
May 30 16:58:52 linus-xfs-crc unknown: run fstests generic/531 at 2024-05-30 16:58:52
May 30 16:58:58 linus-xfs-crc kernel: XFS (loop5): Mounting V5 Filesystem fc992da8-4df6-4561-8900-e2929b368652
May 30 16:58:58 linus-xfs-crc kernel: XFS (loop5): Ending clean mount
May 30 17:02:41 linus-xfs-crc kernel: XFS: Assertion failed: bp->b_flags & XBF_DONE, file: fs/xfs/xfs_trans_buf.c, line: 241
May 30 17:02:41 linus-xfs-crc kernel: ------------[ cut here ]------------
May 30 17:02:41 linus-xfs-crc kernel: kernel BUG at fs/xfs/xfs_message.c:102!
May 30 17:02:41 linus-xfs-crc kernel: Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
May 30 17:02:41 linus-xfs-crc kernel: CPU: 4 PID: 73 Comm: kworker/4:1 Not tainted 6.10.0-rc1 #4
root@linus-xfs-nocrc-2k /var/lib/xfstests # du -hs /media/sparsefiles/sparse-disk*
0 /media/sparsefiles/sparse-disk10
0 /media/sparsefiles/sparse-disk11
0 /media/sparsefiles/sparse-disk12
0 /media/sparsefiles/sparse-disk13
0 /media/sparsefiles/sparse-disk14
132M /media/sparsefiles/sparse-disk15
65M /media/sparsefiles/sparse-disk16
65M /media/sparsefiles/sparse-disk5
0 /media/sparsefiles/sparse-disk6