Skip to content

Udisks trying to mount unavailable smb share freezes the desktop momentarily #1323

@cyberpunkrocker-zero

Description

@cyberpunkrocker-zero

Arch Linux recently moved to udisks2. Now, I have a separate server hosting a Samba service, which server is currently down for hardware reasons. Udisks is periodically, in every 10 minutes or so, trying to mount the unavailable smb share, as seen from the journal:

loka 14 20:43:06 neverwinter systemd[1]: mnt-smbshare.automount: Got automount request for /mnt/smbshare, triggered by 1942 (awesome)
loka 14 20:43:06 neverwinter systemd[1]: Mounting /mnt/smbshare...
loka 14 20:43:06 neverwinter kernel: CIFS: enabling forceuid mount option implicitly because uid= option is specified
loka 14 20:43:06 neverwinter kernel: CIFS: enabling forcegid mount option implicitly because gid= option is specified
loka 14 20:43:06 neverwinter kernel: CIFS: Attempting to mount //192.168.1.10/share
loka 14 20:43:12 neverwinter mount[61982]: mount error(113): could not connect to 192.168.1.10Unable to find suitable address.
loka 14 20:43:12 neverwinter systemd[1]: mnt-smbshare.mount: Mount process exited, code=exited, status=32/n/a
loka 14 20:43:12 neverwinter systemd[1]: mnt-smbshare.mount: Failed with result 'exit-code'.
loka 14 20:43:12 neverwinter systemd[1]: Failed to mount /mnt/smbshare.
loka 14 20:43:12 neverwinter kernel: CIFS: VFS: Error connecting to socket. Aborting operation.
loka 14 20:43:12 neverwinter kernel: CIFS: VFS: cifs_mount failed w/return code = -113

I suppose this is as it should work, but... the real issue with this is that EVERY time this is run, the whole desktop freezes for a few seconds!!! I was running journalctl -f on a terminal to verify the simultaneousity of the mount/freeze events. This kind of thing shouldn't be happening!

The process 1942 (awesome) mentioned in the above excerpt is my window manager's (Awesome WM) process. I don't understand why it would be the triggering process, and why udisks is allowed to freeze it?

I had to temporarily comment out the smb share entry in /etc/fstab to make desktop to run smoothly again.

Arch Linux
linux-lts-6.6.56
udisks2-2.10.1
Awesome WM running on X server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions