• NeilBrown's avatar
    blocK: Restore barrier support for md and probably other virtual devices. · db64f680
    NeilBrown authored
    The next_ordered flag is only meaningful for devices that use __make_request.
    So move the test against next_ordered out of generic code and in to
    __make_request
    
    Since this test was added, barriers have not worked on md or any
    devices that don't use __make_request and so don't bother to set
    next_ordered.  (dm explicitly sets something other than
    QUEUE_ORDERED_NONE since
      commit 99360b4c
    but notes in the comments that it is otherwise meaningless).
    
    Cc: Ken Milmore <ken.milmore@googlemail.com>
    Cc: stable@kernel.org
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    db64f680
blk-core.c 64 KB