Home
last modified time | relevance | path

Searched refs:REQ_FUA (Results 1 – 34 of 34) sorted by relevance

/linux-4.1.27/Documentation/block/
Dwriteback_cache_control.txt36 The REQ_FUA flag can be OR ed into the r/w flags of a bio submitted from the
44 Filesystems can simply set the REQ_FLUSH and REQ_FUA bits and do not have to
46 the Forced Unit Access is implemented. The REQ_FLUSH and REQ_FUA flags
53 These drivers will always see the REQ_FLUSH and REQ_FUA bits as they sit
54 directly below the submit_bio interface. For remapping drivers the REQ_FUA
57 drivers that do not have a volatile cache the REQ_FLUSH and REQ_FUA bits
69 entering the driver and strips off the REQ_FLUSH and REQ_FUA bits from
80 to be told to pass through the REQ_FUA bit using:
82 blk_queue_flush(sdkp->disk->queue, REQ_FLUSH | REQ_FUA);
84 and the driver must handle write requests that have the REQ_FUA bit set
/linux-4.1.27/include/linux/
Dblk_types.h215 REQ_DISCARD | REQ_WRITE_SAME | REQ_NOIDLE | REQ_FLUSH | REQ_FUA | \
223 (REQ_NOMERGE | REQ_STARTED | REQ_SOFTBARRIER | REQ_FLUSH | REQ_FUA | REQ_FLUSH_SEQ)
230 #define REQ_FUA (1ULL << __REQ_FUA) macro
Dfs.h204 #define WRITE_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FUA)
205 #define WRITE_FLUSH_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FLUSH | REQ_FUA)
/linux-4.1.27/block/
Dblk-flush.c107 if (!(fflags & REQ_FUA) && (rq->cmd_flags & REQ_FUA)) in blk_flush_policy()
383 if (!(fflags & REQ_FUA)) in blk_insert_flush()
384 rq->cmd_flags &= ~REQ_FUA; in blk_insert_flush()
Dblk-settings.c840 WARN_ON_ONCE(flush & ~(REQ_FLUSH | REQ_FUA)); in blk_queue_flush()
842 if (WARN_ON_ONCE(!(flush & REQ_FLUSH) && (flush & REQ_FUA))) in blk_queue_flush()
843 flush &= ~REQ_FUA; in blk_queue_flush()
845 q->flush_flags = flush & (REQ_FLUSH | REQ_FUA); in blk_queue_flush()
Dblk-core.c938 if (bio->bi_rw & (REQ_FLUSH | REQ_FUA)) in blk_rq_should_init_elevator()
1603 if (bio->bi_rw & (REQ_FLUSH | REQ_FUA)) { in blk_queue_bio()
1842 if ((bio->bi_rw & (REQ_FLUSH | REQ_FUA)) && !q->flush_flags) { in generic_make_request_checks()
1843 bio->bi_rw &= ~(REQ_FLUSH | REQ_FUA); in generic_make_request_checks()
2086 if (rq->cmd_flags & (REQ_FLUSH|REQ_FUA)) in blk_insert_cloned_request()
3179 if (rq->cmd_flags & (REQ_FLUSH | REQ_FUA)) in blk_flush_plug_list()
Dblk-mq.c1248 const int is_flush_fua = bio->bi_rw & (REQ_FLUSH | REQ_FUA); in blk_mq_make_request()
1324 const int is_flush_fua = bio->bi_rw & (REQ_FLUSH | REQ_FUA); in blk_sq_make_request()
/linux-4.1.27/drivers/block/
Dxen-blkfront.c461 BUG_ON(req->cmd_flags & (REQ_FLUSH | REQ_FUA)); in blkif_queue_request()
473 if (req->cmd_flags & (REQ_FLUSH | REQ_FUA)) { in blkif_queue_request()
482 ((REQ_FLUSH|REQ_FUA))) { in blkif_queue_request()
483 case REQ_FLUSH|REQ_FUA: in blkif_queue_request()
602 ((req->cmd_flags & REQ_FUA) && in blkif_request_flush_invalid()
603 !(info->feature_flush & REQ_FUA))); in blkif_request_flush_invalid()
701 switch (feature_flush & ((REQ_FLUSH | REQ_FUA))) { in flush_info()
702 case REQ_FLUSH|REQ_FUA: in flush_info()
1505 (REQ_FLUSH | REQ_FUA | REQ_DISCARD | REQ_SECURE)) { in blkif_recover()
1530 (REQ_FLUSH | REQ_FUA | REQ_DISCARD | REQ_SECURE)) { in blkif_recover()
[all …]
Dnvme-core.c767 if (req->cmd_flags & REQ_FUA) in nvme_submit_iod()
2141 blk_queue_flush(ns->queue, REQ_FLUSH | REQ_FUA); in nvme_alloc_ns()
Dskd_main.c632 if (io_flags & REQ_FUA) in skd_request_fn()
4415 blk_queue_flush(q, REQ_FLUSH | REQ_FUA); in skd_cons_disk()
/linux-4.1.27/drivers/scsi/
Dsd.c144 flush |= REQ_FUA; in sd_set_flush_flag()
1031 SCpnt->cmnd[10] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1056 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1074 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1083 if (unlikely(rq->cmd_flags & REQ_FUA)) { in sd_setup_read_write_cmnd()
/linux-4.1.27/Documentation/device-mapper/
Dlog-writes.txt38 Any REQ_FUA requests bypass this flushing mechanism and are logged as soon as
/linux-4.1.27/drivers/md/bcache/
Drequest.c208 bio->bi_rw &= ~(REQ_FLUSH|REQ_FUA); in bch_data_insert_start()
662 s->iop.flush_journal = (bio->bi_rw & (REQ_FLUSH|REQ_FUA)) != 0; in search_alloc()
Djournal.c627 bio->bi_rw = REQ_WRITE|REQ_SYNC|REQ_META|REQ_FLUSH|REQ_FUA; in journal_write_unlocked()
Dbtree.c400 b->bio->bi_rw = REQ_META|WRITE_SYNC|REQ_FUA; in do_btree_node_write()
Dsuper.c850 blk_queue_flush(q, REQ_FLUSH|REQ_FUA); in bcache_device_init()
/linux-4.1.27/drivers/md/
Ddm-table.c1497 if (dm_table_supports_flush(t, REQ_FUA)) in dm_table_set_restrictions()
1498 flush |= REQ_FUA; in dm_table_set_restrictions()
Ddm-log-writes.c554 bool fua_bio = (bio->bi_rw & REQ_FUA); in log_writes_map()
Ddm-thin.c585 return (bio->bi_rw & (REQ_FLUSH | REQ_FUA)) && in bio_triggers_commit()
754 if (bio->bi_rw & (REQ_DISCARD | REQ_FLUSH | REQ_FUA)) in __inc_remap_and_issue_cell()
1429 (bio->bi_rw & (REQ_DISCARD | REQ_FLUSH | REQ_FUA))) in __remap_and_issue_shared_cell()
2309 if (bio->bi_rw & (REQ_DISCARD | REQ_FLUSH | REQ_FUA)) { in thin_bio_map()
Ddm-cache-target.c741 !(bio->bi_rw & (REQ_FUA | REQ_FLUSH | REQ_DISCARD))) { in check_if_tick_bio_needed()
782 return bio->bi_rw & (REQ_FLUSH | REQ_FUA); in bio_triggers_commit()
2627 if (bio->bi_rw & (REQ_FLUSH | REQ_FUA | REQ_DISCARD)) { in __cache_map()
Draid1.c1090 const unsigned long do_flush_fua = (bio->bi_rw & (REQ_FLUSH | REQ_FUA)); in make_request()
Draid10.c1152 const unsigned long do_fua = (bio->bi_rw & REQ_FUA); in __make_request()
Draid5.c1622 if (wbi->bi_rw & REQ_FUA) in ops_run_biodrain()
Dmd.c4927 blk_queue_flush(mddev->queue, REQ_FLUSH | REQ_FUA); in md_alloc()
/linux-4.1.27/drivers/mmc/card/
Dblock.c65 #define mmc_req_rel_wr(req) (((req->cmd_flags & REQ_FUA) || \
1375 bool do_rel_wr = ((req->cmd_flags & REQ_FUA) || in mmc_blk_rw_rq_prep()
2188 blk_queue_flush(md->queue.queue, REQ_FLUSH | REQ_FUA); in mmc_blk_alloc_req()
/linux-4.1.27/drivers/target/
Dtarget_core_iblock.c696 if (q->flush_flags & REQ_FUA) { in iblock_execute_rw()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_actlog.c151 rw |= REQ_FUA | REQ_FLUSH; in _drbd_md_sync_page_io()
Ddrbd_main.c1609 (bi_rw & REQ_FUA ? DP_FUA : 0) | in bio_flags_to_wire()
2772 blk_queue_flush(q, REQ_FLUSH | REQ_FUA); in drbd_create_device()
Ddrbd_receiver.c2131 (dpf & DP_FUA ? REQ_FUA : 0) | in wire_flags_to_bio()
/linux-4.1.27/fs/xfs/
Dxfs_buf.c1243 rw |= REQ_FUA; in _xfs_buf_ioapply()
/linux-4.1.27/fs/jbd/
Djournal.c1062 write_op &= ~(REQ_FUA | REQ_FLUSH); in journal_write_superblock()
/linux-4.1.27/fs/btrfs/
Dcheck-integrity.c2248 if (block->submit_bio_bh_rw & REQ_FUA) in btrfsic_bio_end_io()
2283 if (block->submit_bio_bh_rw & REQ_FUA) in btrfsic_bh_end_io()
/linux-4.1.27/kernel/trace/
Dblktrace.c1803 if (rw & REQ_FUA) in blk_fill_rwbs()
/linux-4.1.27/fs/jbd2/
Djournal.c1349 write_op &= ~(REQ_FUA | REQ_FLUSH); in jbd2_write_superblock()