Bug 281511 - FFS mount(8) test scenario hangs in "sdstart"
Summary: FFS mount(8) test scenario hangs in "sdstart"
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 15.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-15 07:15 UTC by Peter Holm
Modified: 2024-11-21 22:01 UTC (History)
2 users (show)

See Also:
linimon: mfc-stable13?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Holm freebsd_committer freebsd_triage 2024-09-15 07:15:05 UTC
root@mercat1:~ # pgrep mount | xargs ps -lp
UID   PID  PPID  C PRI NI   VSZ  RSS MWCHAN  STAT TT     TIME COMMAND
  0 85859 28743  9  68  0 13280 3112 sdstart D     0  0:00.18 mount /dev/md23 /mnt23
  0 85870 28497 10  68  0 13280 3116 sdstart D     0  0:00.18 mount /dev/md21 /mnt21

Details: https://people.freebsd.org/~pho/stress/log/log0549.txt

How to reproduce:
cd src/tools/test/stress2/misc
./all.sh -a mount7.sh
# Wait for up to one hour
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-09-15 15:01:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=4b273a7fb9e6d9a006c5ac7cbd27f5d006569edb

commit 4b273a7fb9e6d9a006c5ac7cbd27f5d006569edb
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-15 08:06:31 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-15 14:59:10 +0000

    softdep_mount: report failure of the softdepflush thread creation

    and do not hang waiting forever for an ack from non-existing thread.

    PR:     281511
    Reported and tested by: pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week

 sys/ufs/ffs/ffs_softdep.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2024-09-15 21:17:53 UTC
^Triage: assign to committer.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-09-22 09:37:37 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d9259de0a6232b1a28787add531cc6627718768d

commit d9259de0a6232b1a28787add531cc6627718768d
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-15 08:06:31 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-21 21:19:50 +0000

    softdep_mount: report failure of the softdepflush thread creation

    PR:     281511

    (cherry picked from commit 4b273a7fb9e6d9a006c5ac7cbd27f5d006569edb)

 sys/ufs/ffs/ffs_softdep.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)