Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Mayne usermode processes shouldn't have uninterruptible I/O access.


> Mayne usermode processes shouldn't have uninterruptible I/O access.

This isn't something userspace processes opt into. It's just how blocking read and write syscalls on filesystems work [1]. If you ever hit a bad block, you may notice that threads that touch it through the fs just hang and you can't recover or kill them. This is how it's always been on Linux and other Unix systems. I of course absolutely hate this and am 100% behind you if you're suggesting changing it.

[1] With the exception of nfs if you set the "intr" mount option.


So how do high-reliability Linux systems get around this? Find bad blocks before a process does? Or use non-blocking I/O? (How does Windows/VMS handle it, is another interesting question)


Windows NT is async at it's core, so it's handled more or less as Linux non-blocking I/O is, but across at least anything in the realm of the VFS rather being opt in by a FS implementation like Linux's non-blocking support.


This also happens to mounted sshfs when the network goes down.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: