On Fri, Dec 6, 2024 at 8:11 PM Viacheslav Dubeyko <Slava.Dubeyko@xxxxxxx> wrote: > Should be the check of > this function's output mandatory? I am not fully sure. But I am fully sure. If you don't check the return value, you don't know whether the inode was locked. If you don't know that, you can't decide whether you need to unlock it. That being optional now (cancel locking if SIGKILL was received) is the sole point of my patch. You MUST check the return value. There is no other way. Don't trust my word - just read the code.