lkml.org 
[lkml]   [2010]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: regd: sleeping in atomic
    On Tue, Mar 16, 2010 at 11:42 AM, Jiri Slaby <jirislaby@gmail.com> wrote:
    > On 03/16/2010 05:18 PM, Luis R. Rodriguez wrote:
    >>
    >> one iteration of call_crda() which happens during module
    >> initialization and from what I gather I don't think the kernel is
    >> happy when you mutex_lock on load routines, please correct my foggy
    >> memory if I am mistaken.
    >
    > No, using mutex in init/exit module routines is fine. Where do you have the
    > information from?

    A snag I hit when trying this a while ago on reg.c. I suppose the real
    issue could have been something else.

    > There might be problems only with request_module,
    > flush_scheduled_work or similar.

    OK -- then in that case I think using a mutex would work here, unless
    John spots any other issues.

    Luis


    \
     
     \ /
      Last update: 2010-03-16 21:39    [W:0.035 / U:0.848 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site