• Ming Lei's avatar
    brd: warn on un-aligned buffer · f1acbf21
    Ming Lei authored
    Queue dma alignment limit requires users(fs, target, ...) of block layer
    to pass aligned buffer.
    
    So far brd doesn't support un-aligned buffer, even though it is easy
    to support it.
    
    However, given brd is often used for debug purpose, and there are other
    drivers which can't support un-aligned buffer too.
    
    So add warning so that brd users know what to fix.
    Reported-by: default avatarStephen Rust <srust@blockbridge.com>
    Cc: Stephen Rust <srust@blockbridge.com>
    Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    f1acbf21
brd.c 12.9 KB