Re: [PATCH] fs: kill unused ret2 argument from iocb->ki_complete()

From
Jens Axboe <axboe@kernel.dk>
Date
2021-10-20 17:35:31
Also in
linux-fsdevel
Reply to
Christoph Hellwig, 2021-10-20
On 10/20/21 11:30 AM, Christoph Hellwig wrote:
On Wed, Oct 20, 2021 at 10:49:07AM -0600, Jens Axboe wrote:
quoted
It's not used for anything, and we're wasting time passing in zeroes
where we could just ignore it instead. Update all ki_complete users in
the kernel to drop that last argument.

The exception is the USB gadget code, which passes in non-zero. But
since nobody every looks at ret2, it's still pointless.
Yes, the USB gadget passes non-zero, and aio passes that on to
userspace.  So this is an ABI change.  Does it actually matter?
I don't know, but you could CC the relevant maintainers and list
to try to figure that out.
True, guess it does go out to userspace. Greg, is anyone using
it on the userspace side?

-- 
Jens Axboe
Thread (9 messages) 9 messages, 4 authors, last reply 2021-10-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help