diff options
author | Wendy Cheng <wcheng@redhat.com> | 2005-09-09 16:02:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:32 -0400 |
commit | 8f58202bf6b915656e116ece3bc4ace14bfe533a (patch) | |
tree | a50d0a3e3b1f7593557fa06379ac4b284717e87c /fs/aio.c | |
parent | 6f519165a97924ab3eeb99f388718d12ff97f1f4 (diff) |
[PATCH] change io_cancel return code for no cancel case
Note that other than few exceptions, most of the current filesystem and/or
drivers do not have aio cancel specifically defined (kiob->ki_cancel field
is mostly NULL). However, sys_io_cancel system call universally sets
return code to -EAGAIN. This gives applications a wrong impression that
this call is implemented but just never works. We have customer inquires
about this issue.
Changed by Benjamin LaHaise to EINVAL instead of ENOSYS
Signed-off-by: S. Wendy Cheng <wcheng@redhat.com>
Acked-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1673,7 +1673,7 @@ asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb, | |||
1673 | ret = -EFAULT; | 1673 | ret = -EFAULT; |
1674 | } | 1674 | } |
1675 | } else | 1675 | } else |
1676 | printk(KERN_DEBUG "iocb has no cancel operation\n"); | 1676 | ret = -EINVAL; |
1677 | 1677 | ||
1678 | put_ioctx(ctx); | 1678 | put_ioctx(ctx); |
1679 | 1679 | ||