Lines Matching refs:endio
480 struct io_notify *endio = context; in writecache_notify_io() local
483 writecache_error(endio->wc, -EIO, "error writing metadata"); in writecache_notify_io()
484 BUG_ON(atomic_read(&endio->count) <= 0); in writecache_notify_io()
485 if (atomic_dec_and_test(&endio->count)) in writecache_notify_io()
486 complete(&endio->c); in writecache_notify_io()
499 struct io_notify endio = { in ssd_commit_flushed() local
501 COMPLETION_INITIALIZER_ONSTACK(endio.c), in ssd_commit_flushed()
524 atomic_inc(&endio.count); in ssd_commit_flushed()
531 req.notify.context = &endio; in ssd_commit_flushed()
538 writecache_notify_io(0, &endio); in ssd_commit_flushed()
539 wait_for_completion_io(&endio.c); in ssd_commit_flushed()