tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix for PR kern/38273



        Hello,

Juan RP suggested a simple fix for PR kern/38273:

 Index: ld.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/ld.c,v
 retrieving revision 1.63
 diff -b -u -p -r1.63 ld.c
 --- ld.c        9 Sep 2008 12:45:39 -0000       1.63
 +++ ld.c        10 Sep 2008 16:06:25 -0000
 @@ -99,7 +99,7 @@ ldattach(struct ld_softc *sc)
  {
         char tbuf[9];

  
 -       mutex_init(&sc->sc_mutex, MUTEX_DEFAULT, IPL_VM);
 +       mutex_init(&sc->sc_mutex, MUTEX_DEFAULT, IPL_NONE);

  
         if ((sc->sc_flags & LDF_ENABLED) == 0) {
                 aprint_normal_dev(sc->sc_dv, "disabled\n");

Considering that other pseudo drivers (e.g. raid(4)) use IPL_NONE, too,
this seems to be reasonabl to me.

Any comments?

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index