• M
    block: add REQ_OP definitions and helpers · f2150821
    Mike Christie 提交于
    The following patches separate the operation (WRITE, READ, DISCARD,
    etc) from the rq_flag_bits flags. This patch adds definitions for
    request/bio operations (REQ_OPs) and adds request/bio accessors to
    get/set the op.
    
    In this patch the REQ_OPs match the REQ rq_flag_bits ones
    for compat reasons while all the code is converted to use the
    op accessors in the set. In the last patches the op will become a
    number and the accessors and helpers in this patch will be dropped
    or updated.
    Signed-off-by: NMike Christie <mchristi@redhat.com>
    Reviewed-by: NHannes Reinecke <hare@suse.com>
    Signed-off-by: NJens Axboe <axboe@fb.com>
    f2150821
blkdev.h 49.7 KB