CIFS share freezes taskbar when NAS offline

Hello everyone.

Before opening a bugreport I would like to check if I might have done something wrong.

I have configured a NAS via systemd-mount + automount for quite some time now and it worked great. Until I decided to save some energy and turn off the NAS during the night.
Now, when the NAS is offline my taskbar-menu freezes when typing in the search bar.
This behaviour stops immediately once the NAS is powered on.

So my assumption is, that the search (or taskbar in general) is triggering the automount feature which runs in a timeout. Hence I checked my Baloo index configuration but Baloo is only allowed to index my home-folder (the NAS is mounted outside of home). Furthermore I made sure to have a short timeout configured in systemd-mount (a second delay is acceptable).

Unfortunately this didn’t solve the issue.

This is how the mount is configured
```
[Unit]
Description=NAS Musik Share
Requires=network-online.target
After=network-online.service

[Mount]
What=//192.xxx.xxx.xxx/music
Where=/mnt/netshare/loki/musik
Options=rw,noauto,uid=100,gid=1000,file_mode=0770,dir_mode=0770,credentials=/home/.creds-loki,vers=3.0,iocharset=utf8
Type=cifs
TimeoutStartSec=1s

[Install]
WantedBy=multi-user.target
```

And the automount
```
[Unit]
Description=Automount NAS Musik

[Automount]
Where=/mnt/netshare/loki/musik

[Install]
WantedBy=network.target

```

What else could I try?

You might look at other mount options, such as _netdev and x-systemd.automount or something similar.

My NAS’ nfs shares needed these, among other options for this exact sort of situation, but I don’t have a copy of what I used, and the box is currently mothballed.

You can check which of the full set of options the mount is using by simply running mount without any options or sudo, when the share has been mounted. The two above might be automatically used already.