• Josef Bacik's avatar
    nbd: fix -ERESTARTSYS handling · 6e60a3bb
    Josef Bacik authored
    Christoph made it so that if we return'ed BLK_STS_RESOURCE whenever we
    got ERESTARTSYS from sending our packets we'd return BLK_STS_OK, which
    means we'd never requeue and just hang.  We really need to return the
    right value from the upper layer.
    
    Fixes: fc17b653 ("blk-mq: switch ->queue_rq return value to blk_status_t")
    Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    6e60a3bb
nbd.c 53.1 KB