• S
    mtip32xx: mtip_async_complete() bug fixes · 5eb9291c
    Sam Bradshaw 提交于
    This patch fixes 2 issues in the fast completion path:
    1) Possible double completions / double dma_unmap_sg() calls due to lack
    of atomicity in the check and subsequent dereference of the upper layer
    callback function. Fixed with cmpxchg before unmap and callback.
    2) Regression in unaligned IO constraining workaround for p420m devices.
    Fixed by checking if IO is unaligned and using proper semaphore if so.
    Signed-off-by: NSam Bradshaw <sbradshaw@micron.com>
    Cc: stable@kernel.org
    Signed-off-by: NJens Axboe <axboe@fb.com>
    5eb9291c
mtip32xx.c 119.9 KB