Lines Matching refs:flush
260 struct virtio_pmem_flush_work *flush; in virtio_pmem_flush_work() local
263 flush = container_of(work, struct virtio_pmem_flush_work, work); in virtio_pmem_flush_work()
264 err = virtio_pmem_flush(flush->nd_region); in virtio_pmem_flush_work()
268 flush->bio->bi_status = errno_to_blk_status(err); in virtio_pmem_flush_work()
269 bio_endio(flush->bio); in virtio_pmem_flush_work()
270 kfree(flush); in virtio_pmem_flush_work()
278 struct virtio_pmem_flush_work *flush; in async_pmem_flush() local
283 flush = kmalloc_obj(*flush, GFP_NOIO); in async_pmem_flush()
284 if (!flush) in async_pmem_flush()
287 INIT_WORK(&flush->work, virtio_pmem_flush_work); in async_pmem_flush()
288 flush->nd_region = nd_region; in async_pmem_flush()
289 flush->bio = bio; in async_pmem_flush()
294 kfree(flush); in async_pmem_flush()
297 queue_work(vpmem->flush_wq, &flush->work); in async_pmem_flush()