https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218337

--- Comment #3 from longw...@incore.de ---
>From my kerneldump I see the backtrace for the g_journal_switcher:

#4  0xffffffff80910c58 in getpbuf (pfreecnt=<value optimized out>) at
/usr/src/sys/vm/vm_pager.c:336
#5  0xffffffff8073f453 in cluster_wbuild (vp=0xfffff80b7e1acb10, size=32768,
start_lbn=<value optimized out>,
    len=<value optimized out>, gbflags=<value optimized out>) at
/usr/src/sys/kern/vfs_cluster.c:840
#6  0xffffffff808d8748 in ffs_syncvnode (vp=0xfffff80b7e1acb10, waitfor=1,
flags=<value optimized out>)
    at /usr/src/sys/ufs/ffs/ffs_vnops.c:298
#7  0xffffffff808d5f6d in ffs_sync (mp=0xfffff8002ba4b000, waitfor=Cannot
access memory at address 0x1
) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1591
#8  0xffffffff807618fc in vfs_write_suspend (mp=0xfffff8002ba4b000,
flags=<value optimized out>)
    at /usr/src/sys/kern/vfs_vnops.c:1877
#9  0xffffffff8112a3e4 in g_journal_switcher (arg=0xffffffff81132f28)

In the source /usr/src/sys/ufs/ffs/ffs_vfsops.c on line 1591 I see the call of
ffs_syncvnode() as stated above (frame #7 --> frame #6). But in the source
/usr/src/sys/ufs/ffs/ffs_vnops.c on line 298 I see a call of vfs_bio_awrite()
and not a call of cluster_wbuild() as stated above (frame #6 --> frame #5).
Looking in the source /usr/src/sys/kern/vfs_bio.c line 1971 I see the function
vfs_bio_awrite() which calls cluster_wbuild(). So I feel there is a missing
frame in the backtrace give by kgdb for g_journal_switcher.

In my ddb output - amd also in Peters ddb output - I see the same:
getpbuf() at getpbuf+0xb8/frame 0xfffffe0c4e49c8b0
cluster_wbuild() at cluster_wbuild+0x83/frame 0xfffffe0c4e49c950
ffs_syncvnode() at ffs_syncvnode+0x308/frame 0xfffffe0c4e49c9e0
ffs_sync() at ffs_sync+0x1fd/frame 0xfffffe0c4e49ca90
vfs_write_suspend() at vfs_write_suspend+0x19c/frame 0xfffffe0c4e49cad0
g_journal_switcher() at g_journal_switcher+0x9a4/frame 0xfffffe0c4e49cbb0

Please can somebody explain to me what is going on here ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-geom@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "freebsd-geom-unsubscr...@freebsd.org"

Reply via email to