svn commit: r222537 - in head/sys: kern sys
Andriy Gapon
avg at FreeBSD.org
Wed Jun 1 06:07:43 UTC 2011
on 31/05/2011 20:29 Kenneth D. Merry said the following:
> + mtx_init(&mbp->msg_lock, "msgbuf", NULL, MTX_SPIN);
Sorry that I didn't gather myself together for a review before this change got
actually committed.
Do you see any reason not to make this spinlock recursive?
I am a little bit worried about "exotic" situations like receiving an NMI in the
middle of printing and wanting to print in the NMI context, or similar things
that penetrate contexts with disabled interrupts - e.g. Machine Check Exception.
Also it's not clear to me if there won't any bigger damage in the situations
like those described above.
P.S. I have been thinking about fixing the problem in a different fashion, via
reserving portions of dmesg buffer for a whole message using CAS:
http://lists.freebsd.org/pipermail/freebsd-hackers/2010-April/031535.html
--
Andriy Gapon
More information about the svn-src-all
mailing list