On Mon, Jun 17, 2019 at 5:56 AM Yan, Zheng <zyan@xxxxxxxxxx> wrote: > > After mds evicts session, file locks get lost sliently. It's not safe to > let programs continue to do read/write. I think one issue with returning EIO on a file handle that did hold a lock is that the application may be programmed to write to other files assuming that lock is never lost, yes? In that case, it may not ever write to the locked file in any case. Again, I'd like to see SIGLOST sent to the application here. Are there any objections to reviving whatever patchset was in flight to add that? Or just writeup a new one? -- Patrick Donnelly, Ph.D. He / Him / His Senior Software Engineer Red Hat Sunnyvale, CA GPG: 19F28A586F808C2402351B93C3301A3E258DD79D