Re: manipulating sigmask from filesystems and drivers

From: David Woodhouse (
Date: Thu Aug 01 2002 - 17:29:31 EST said:
> Any regular file IO is supposed to give you the full result.

read(2) is permitted to return -EINTR. Granted, we shouldn't allow it to be
interrupted and return a partial read after the point we start to
copy_to_user(), but before then it's fair game.

Regular file I/O through the page cache is inherently restartable, anyway,
as long as you're careful about fpos.

There are better examples where you really can't have a cleanup path without
severe pain, even using ERESTARTNOINTR, and I was only joking about removing
TASK_UNINTERRUPTIBLE _entirely_ -- but the point remains that reducing its
usage would be nice.


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:17 EST