• Javier González's avatar
    pblk: fix max_io calculation · 9205e449
    Javier González authored
    When calculating the maximun I/O size allowed into the buffer, consider
    the write size (ws_opt) used by the write thread in order to cover the
    case in which, due to flushes, the mem and subm pointers are disaligned
    by (ws_opt - 1). This case currently translates into a stall when
    an I/O of the largest possible size is submitted.
    
    Fixes: f9f9d1ae2c66 ("lightnvm: pblk: prevent stall due to wb threshold")
    Signed-off-by: default avatarJavier González <javier@javigon.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    9205e449
pblk-rl.c 6.29 KB