Thread (8 messages) 8 messages, 4 authors, 2020-03-12

Re: Is ext4_dio_read_iter() broken? - and xfs_file_dio_aio_read()

From: David Howells <dhowells@redhat.com>
Date: 2020-03-12 10:49:48
Also in: linux-fsdevel, linux-xfs

Christoph Hellwig [off-list ref] wrote:
quoted
quoted
at the end of the function - but surely iocb should be expected to have
been freed when iocb->ki_complete() was called?
The iocb is refcounted and only completed when the refcount hits zero,
and an extra reference is held until the submission has completed.
Take a look at iocb_put().
Ah...  This is in struct aio_kiocb and not struct kiocb - that's why I missed
it.  Thanks.

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help