• Tejun Heo's avatar
    bio: use bio_kmalloc() in copy/map functions · a9e9dc24
    Tejun Heo authored
    Impact: remove possible deadlock condition
    
    There is no reason to use mempool backed allocation for map functions.
    Also, because kern mapping is used inside LLDs (e.g. for EH), using
    mempool backed allocation can lead to deadlock under extreme
    conditions (mempool already consumed by the time a request reached EH
    and requests are blocked on EH).
    
    Switch copy/map functions to bio_kmalloc().
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    a9e9dc24
bio.c 38.8 KB