summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2010-09-22 22:05:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-23 02:22:39 +0200
commita0c42bac79731276c9b2f28d54f9e658fcf843a2 (patch)
treec138e92f301f6f10ca684c1d83126928452f0ffa /firmware
parentvmscan: check all_unreclaimable in direct reclaim path (diff)
downloadlinux-a0c42bac79731276c9b2f28d54f9e658fcf843a2.tar.xz
linux-a0c42bac79731276c9b2f28d54f9e658fcf843a2.zip
aio: do not return ERESTARTSYS as a result of AIO
OCFS2 can return ERESTARTSYS from its write function when the process is signalled while waiting for a cluster lock (and the filesystem is mounted with intr mount option). Generally, it seems reasonable to allow filesystems to return this error code from its IO functions. As we must not leak ERESTARTSYS (and similar error codes) to userspace as a result of an AIO operation, we have to properly convert it to EINTR inside AIO code (restarting the syscall isn't really an option because other AIO could have been already submitted by the same io_submit syscall). Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Zach Brown <zach.brown@oracle.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions