What a pain in the ass. If you use mount.cifs under Ubuntu 20.04 and now you have stale file handle to edit files and more.
We look in to the manpage from mount.cifs and there is a option to solve this issue.
noserverino Client generates inode numbers itself rather than using the actual ones from the server.
See section INODE NUMBERS for more information.