/* just like aio_run_iocbs, but keeps running them until the list stays empty  */
static void aio_run_all_iocbs(struct kioctx *ctx)
/* just like aio_run_iocbs, but keeps running them until the list stays empty  */
static void aio_run_all_iocbs(struct kioctx *ctx)
{
	spin_lock_irq(&ctx->ctx_lock);
	while (__aio_run_iocbs(ctx))
		;
	spin_unlock_irq(&ctx->ctx_lock);
}