On 8:27 13/12, Matthew Wilcox wrote: > On Thu, Dec 13, 2018 at 05:53:06AM -0600, Goldwyn Rodrigues wrote: > > For AIO+DIO with RWF_NOWAIT, if the block layer does not support REQ_NOWAIT, > > it returns EIO. Return EOPNOTSUPP to represent the correct error code. > > Why is EOPNOTSUPP the "correct" error code? That's a networking error, > not a block layer error. No. We return EOPNOTSUPP in filesystems as well, in case RWF_NOWAIT is not supported. -- Goldwyn