• J
    blk-mq: for_each_* macro correctness · 0d0b7d42
    Jose Alonso 提交于
    I observed that there are for_each macros that do an extra memory access
    beyond the defined area.
    Normally this does not cause problems.
    But, this can cause exceptions. For example: if the area is allocated at
    the end of a page and the next page is not accessible.
    
    For correctness, I suggest changing the arguments of the 'for loop' like
    others 'for_each' do in the kernel.
    Signed-off-by: NJose Alonso <joalonsof@gmail.com>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    0d0b7d42
blk-mq.h 5.0 KB