lkml.org 
[lkml]   [2008]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/2] loop : Don't hold the lo_ctl_mutex while fput in loop_clr_fd
    On Mon, Apr 28, 2008 at 10:10:22AM +0800, Dave Young wrote:
    > [Fixing bug 10504]
    >
    > If the bakingfile is a block device file, losetuo -d will trigger lockdep
    > warning of "circular locking dependency".
    >
    > open/release lock order : bdev->bd_mutex ---> lo->lo_ctl_mutex
    > loop_clr_fd lock order : lo->lo_ctl_mutex ---> bdev->bd_mutex (fput)
    >
    > Don't hold the lo_ctl_mutex while fput in loop_clr_fd to fix it. It's safe
    > because all loop device state will be consistent here.

    Explain.


    \
     
     \ /
      Last update: 2008-04-28 04:15    [W:0.017 / U:270.172 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site