[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <x49sk48318n.fsf@segfault.boston.devel.redhat.com>
Date: Sun, 27 Jun 2010 12:10:32 -0400
From: Jeff Moyer <jmoyer@...hat.com>
To: Sergey Temerkhanov <temerkhanov@...ronik.ru>
Cc: Sergey Temerkhanov <temerkhanov@...dex.ru>,
Andrew Morton <akpm@...ux-foundation.org>,
"linux-aio" <linux-aio@...ck.org>,
LKML <linux-kernel@...r.kernel.org>,
Benjamin LaHaise <bcrl@...ck.org>,
Zach Brown <zach.brown@...cle.com>,
Suparna Bhattacharya <suparna@...ibm.com>
Subject: Re: [PATCH][RFC] AIO: always reinitialize iocb->ki_run_list at the end of aio_run_iocb()
Sergey Temerkhanov <temerkhanov@...ronik.ru> writes:
> The problem with kick_iocb() is exactly as this: If retry() method
> returns -EIOCBQUEUED to aio_run_iocb() then any subsequent call to
> kick_iocb() results in failure. Is it expected behavior?
* If ki_retry returns -EIOCBQUEUED it has made a promise that aio_complete()
* will be called on the kiocb pointer in the future. The AIO core will
* not ask the method again -- ki_retry must ensure forward progress.
Does that answer your question?
Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists