Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 1997 22:11:24 +1030
From:      Mike Smith <mike@smith.net.au>
To:        proff@iq.org
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: kernel spinlocks, splbio(), MUTEX etc 
Message-ID:  <199710301141.WAA00594@word.smith.net.au>
In-Reply-To: Your message of "30 Oct 1997 06:16:07 -0000." <19971030061607.18190.qmail@iq.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I have a possible access contention between two peices of code,
> one hanging off a timeout() interrupt and the other called via
> the VFS sub-system. I don't want to lock the object they are 
> accessing by using splbio() as both bits of code use around
> 32k instructions.
> 
> ideas?

Can you defer one or both of the fragments?  The only real alternatives 
are to redesign your code to reduce the size of the critical region(s), 
and that's not always easy...

mike





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710301141.WAA00594>