lkml.org 
[lkml]   [2012]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] driver core: fix shutdown races with probe/remove(v2)
    From
    On Mon, Jun 11, 2012 at 10:16 PM, Alan Stern <stern@rowland.harvard.edu> wrote:

    >> +
    >> +             if (nonlocked)
    >> +                     dev_err(dev, "can't hold %slock for shutdown\n",
    >> +                                     nonlocked == 1 ? "" : "parent ");
    >
    > Even if the parent can't be locked, you should still try to lock the
    > device.

    I have considered doing it, but which may consume another 1sec.

    Also if the parent lock has been held, it is very possibly that the
    device can't be probed or removed at the same time, so just logged
    the crazy thing and go ahead.

    Thanks,
    --
    Ming Lei
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2012-06-11 18:21    [W:0.021 / U:61.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site