Deleting a file however I noticed takes a really long time (sometimes well over 30s), and checking with strace -r I noticed most of the time is spent executing unlinkat(AT_FDCWD, "File", 0) = 0. Deleting the file directly on the host itself is almost instant. The same thing happens on macOS mounting the share via SMB.
Does anyone know what the cause of this could be? Unfortunately, this renders my storage array pretty much useless.
However, that doesn’t explain your slow delete via SMB. If it’s deleting on the host quickly and from a MacOS client, then I suspect it may be something with your particular Linux Distro or there’s very poor network performance between your Linux client and your Rockstor server.
You do not delete, but move it to another file system - it is copied to “thrash” somewhere,and the unlinked - “expunged”. Place a thrash directory in the Samba mounted file system to make the “unlinking” faster.