Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2017 18:07:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 213903] Kernel crashes from turnstile_broadcast (/usr/src/sys/kern/subr_turnstile.c:837)
Message-ID:  <bug-213903-8-CIrfpFyMOO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213903-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213903-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213903

--- Comment #40 from Cassiano Peixoto <peixoto.cassiano@gmail.com> ---
(In reply to Mateusz Guzik from comment #39)
Mateusz,

I can test it, but my 10-STABLE version has a different code:

/* Release a write lock. */
#define __rw_wunlock(rw, tid, file, line) do {                          \
        uintptr_t _tid =3D (uintptr_t)(tid);                              \
        uintptr_t _v;                                                   \
                                                                        \
        if ((rw)->rw_recurse)                                           \
                (rw)->rw_recurse--;                                     \
        else {                                                          \
                _v =3D (rw)->rw_lock;                                     \
                if (_v !=3D _tid || !_rw_write_unlock_fetch((rw), &_v))   \
                        _rw_wunlock_hard((rw), _v, _tid, (file), (line));\
        }                                                               \
} while (0)

How shoukd i adapt your patch in this code?

Thanks.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213903-8-CIrfpFyMOO>