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

            Bug ID: 288127
           Summary: Deadlock in vfs
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 262016
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262016&action=edit
procstat output

On the fresh (
https://github.com/freebsd/freebsd-src/commit/f6e5bcd4716c2974c7ceb1fbbfc0ef8db8e13d8b
) CURRENT I started getting random processes to hang at random times. When the
process hangs, `top` reports its state as [zfs].

Here is the procstat output for the hanged system state:
https://termbin.com/o8sf (also attached). In that case the hanged processes
were
- yakuake
- nextcloud
- kalendarac
- plasmashell
- pulseaudio

All of these processes are waiting on

mi_switch+0x172 sleepq_switch+0x109 sleeplk+0x110 lockmgr_slock_hard+0x3c3
VOP_LOCK1_APV+0x2a _vn_lock+0x53 vfs_lookup+0x14c namei+0x35d
kern_accessat+0x1c0 amd64_syscall+0x169 fast_syscall_common+0xf8 

Interestingly, there is one more process waiting on this lock, but in the
"select" state - xdg-desktop-portal:

mi_switch+0x172 sleepq_switch+0x109 sleeplk+0x110 lockmgr_slock_hard+0x3c3
VOP_LOCK1_APV+0x2a _vn_lock+0x53 vfs_lookup+0x14c namei+0x35d
vn_inotify_add_watch+0x1f5 VOP_INOTIFY_ADD_WATCH_APV+0x2a
kern_inotify_add_watch+0x34a amd64_syscall+0x169 fast_syscall_common+0xf8 

This made me think that recent inotify changes might be related to this hang.

After the deadlock resolver kicked in I was able to print the location:
https://github.com/freebsd/freebsd-src/blob/78935fa40eee14aab1c6de676a1017bcabdf5fa1/sys/kern/vfs_subr.c#L3384

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to