Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/include/linux/
Dblk_types.h211 REQ_DISCARD | REQ_WRITE_SAME | REQ_NOIDLE | REQ_FLUSH | REQ_FUA | \
219 (REQ_NOMERGE | REQ_STARTED | REQ_SOFTBARRIER | REQ_FLUSH | REQ_FUA | REQ_FLUSH_SEQ)
226 #define REQ_FUA (1ULL << __REQ_FUA) macro
Dfs.h205 #define WRITE_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FUA)
206 #define WRITE_FLUSH_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FLUSH | REQ_FUA)
/linux-4.4.14/block/
Dblk-flush.c108 if (!(fflags & REQ_FUA) && (rq->cmd_flags & REQ_FUA)) in blk_flush_policy()
396 if (!(fflags & REQ_FUA)) in blk_insert_flush()
397 rq->cmd_flags &= ~REQ_FUA; in blk_insert_flush()
Dblk-settings.c834 WARN_ON_ONCE(flush & ~(REQ_FLUSH | REQ_FUA)); in blk_queue_flush()
836 if (WARN_ON_ONCE(!(flush & REQ_FLUSH) && (flush & REQ_FUA))) in blk_queue_flush()
837 flush &= ~REQ_FUA; in blk_queue_flush()
839 q->flush_flags = flush & (REQ_FLUSH | REQ_FUA); in blk_queue_flush()
Dblk-core.c1024 if (bio->bi_rw & (REQ_FLUSH | REQ_FUA)) in blk_rq_should_init_elevator()
1723 if (bio->bi_rw & (REQ_FLUSH | REQ_FUA)) { in blk_queue_bio()
1956 if ((bio->bi_rw & (REQ_FLUSH | REQ_FUA)) && !q->flush_flags) { in generic_make_request_checks()
1957 bio->bi_rw &= ~(REQ_FLUSH | REQ_FUA); in generic_make_request_checks()
2208 if (rq->cmd_flags & (REQ_FLUSH|REQ_FUA)) in blk_insert_cloned_request()
3300 if (rq->cmd_flags & (REQ_FLUSH | REQ_FUA)) in blk_flush_plug_list()
Dblk-mq.c1245 const int is_flush_fua = bio->bi_rw & (REQ_FLUSH | REQ_FUA); in blk_mq_make_request()
1342 const int is_flush_fua = bio->bi_rw & (REQ_FLUSH | REQ_FUA); in blk_sq_make_request()
/linux-4.4.14/drivers/block/
Dxen-blkfront.c638 BUG_ON(req->cmd_flags & (REQ_FLUSH | REQ_FUA)); in blkif_queue_rw_req()
650 if (req->cmd_flags & (REQ_FLUSH | REQ_FUA)) { in blkif_queue_rw_req()
659 ((REQ_FLUSH|REQ_FUA))) { in blkif_queue_rw_req()
660 case REQ_FLUSH|REQ_FUA: in blkif_queue_rw_req()
743 ((req->cmd_flags & REQ_FUA) && in blkif_request_flush_invalid()
744 !(info->feature_flush & REQ_FUA))); in blkif_request_flush_invalid()
842 switch (feature_flush & ((REQ_FLUSH | REQ_FUA))) { in flush_info()
843 case REQ_FLUSH|REQ_FUA: in flush_info()
1695 (REQ_FLUSH | REQ_FUA | REQ_DISCARD | REQ_SECURE)) { in blkif_recover()
1950 info->feature_flush = REQ_FLUSH | REQ_FUA; in blkfront_gather_backend_features()
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.4.14/drivers/scsi/
Dsd.c145 flush |= REQ_FUA; in sd_set_flush_flag()
1046 SCpnt->cmnd[10] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1071 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1089 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_setup_read_write_cmnd()
1098 if (unlikely(rq->cmd_flags & REQ_FUA)) { in sd_setup_read_write_cmnd()
/linux-4.4.14/Documentation/device-mapper/
Dlog-writes.txt38 Any REQ_FUA requests bypass this flushing mechanism and are logged as soon as
/linux-4.4.14/drivers/md/bcache/
Drequest.c211 bio->bi_rw &= ~(REQ_FLUSH|REQ_FUA); in bch_data_insert_start()
671 s->iop.flush_journal = (bio->bi_rw & (REQ_FLUSH|REQ_FUA)) != 0; in search_alloc()
Djournal.c629 bio->bi_rw = REQ_WRITE|REQ_SYNC|REQ_META|REQ_FLUSH|REQ_FUA; in journal_write_unlocked()
Dsuper.c819 blk_queue_flush(q, REQ_FLUSH|REQ_FUA); in bcache_device_init()
Dbtree.c400 b->bio->bi_rw = REQ_META|WRITE_SYNC|REQ_FUA; in do_btree_node_write()
/linux-4.4.14/drivers/md/
Ddm-table.c1499 if (dm_table_supports_flush(t, REQ_FUA)) in dm_table_set_restrictions()
1500 flush |= REQ_FUA; in dm_table_set_restrictions()
Ddm-log-writes.c556 bool fua_bio = (bio->bi_rw & REQ_FUA); in log_writes_map()
Ddm-thin.c698 return (bio->bi_rw & (REQ_FLUSH | REQ_FUA)) && in bio_triggers_commit()
869 if (bio->bi_rw & (REQ_DISCARD | REQ_FLUSH | REQ_FUA)) in __inc_remap_and_issue_cell()
1647 (bio->bi_rw & (REQ_DISCARD | REQ_FLUSH | REQ_FUA))) in __remap_and_issue_shared_cell()
2559 if (bio->bi_rw & (REQ_DISCARD | REQ_FLUSH | REQ_FUA)) { in thin_bio_map()
Ddm-cache-target.c794 !(bio->bi_rw & (REQ_FUA | REQ_FLUSH | REQ_DISCARD))) { in check_if_tick_bio_needed()
835 return bio->bi_rw & (REQ_FLUSH | REQ_FUA); in bio_triggers_commit()
1073 return bio->bi_rw & (REQ_FLUSH | REQ_FUA | REQ_DISCARD); in discard_or_flush()
Draid1.c1058 const unsigned long do_flush_fua = (bio->bi_rw & (REQ_FLUSH | REQ_FUA)); in make_request()
Draid10.c1063 const unsigned long do_fua = (bio->bi_rw & REQ_FUA); in __make_request()
Draid5.c1624 if (wbi->bi_rw & REQ_FUA) in ops_run_biodrain()
Dmd.c5042 blk_queue_flush(mddev->queue, REQ_FLUSH | REQ_FUA); in md_alloc()
/linux-4.4.14/drivers/target/
Dtarget_core_iblock.c656 if (q->flush_flags & REQ_FUA) { in iblock_execute_rw()
/linux-4.4.14/drivers/mmc/card/
Dblock.c68 #define mmc_req_rel_wr(req) ((req->cmd_flags & REQ_FUA) && \
1479 bool do_rel_wr = (req->cmd_flags & REQ_FUA) && in mmc_blk_rw_rq_prep()
2293 blk_queue_flush(md->queue.queue, REQ_FLUSH | REQ_FUA); in mmc_blk_alloc_req()
/linux-4.4.14/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.c2132 (dpf & DP_FUA ? REQ_FUA : 0) | in wire_flags_to_bio()
/linux-4.4.14/fs/xfs/
Dxfs_buf.c1241 rw |= REQ_FUA; in _xfs_buf_ioapply()
/linux-4.4.14/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.4.14/kernel/trace/
Dblktrace.c1792 if (rw & REQ_FUA) in blk_fill_rwbs()
/linux-4.4.14/drivers/nvme/host/
Dpci.c793 if (req->cmd_flags & REQ_FUA) in nvme_submit_iod()
2283 blk_queue_flush(ns->queue, REQ_FLUSH | REQ_FUA); in nvme_alloc_ns()
/linux-4.4.14/fs/jbd2/
Djournal.c1334 write_op &= ~(REQ_FUA | REQ_FLUSH); in jbd2_write_superblock()