• Jens Axboe's avatar
    Revert "loop: cleanup partitions when detaching loop device" · c2fccc1c
    Jens Axboe authored
    This reverts commit 8761a3dc.
    
    There are situations where the destruction path is called
    with the bdev->bd_mutex already held, which then deadlocks in
    loop_clr_fd(). The normal partition cleanup does a trylock()
    on the mutex, but it'd be nice to have a more bullet proof
    method in loop. So punt this more involved fix to the next
    merge window, and just back out this buggy fix for now.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    c2fccc1c
partition-generic.c 14 KB