svn commit: r339582 - head/sys/dev/sound/midi

Konstantin Belousov kostikbel at gmail.com
Mon Oct 22 10:20:28 UTC 2018


On Mon, Oct 22, 2018 at 12:09:54PM +0200, Hans Petter Selasky wrote:
> On 10/22/18 11:51 AM, Konstantin Belousov wrote:
> > On Mon, Oct 22, 2018 at 08:58:28AM +0000, Hans Petter Selasky wrote:
> >> Author: hselasky
> >> Date: Mon Oct 22 08:58:27 2018
> >> New Revision: 339582
> >> URL: https://svnweb.freebsd.org/changeset/base/339582
> >>
> >> Log:
> >>    Drop sequencer mutex around uiomove() and make sure we don't move more bytes
> >>    than is available, else a panic might happen.
> > And why it is safe to drop the mutex ?
> > If it is safe to drop, why do you need the mutex at all ?
> > 
> 
> The seq mutex protects the queue state, which is entirely computed prior 
> or after uiomove().

Then why do you need to re-acquire the mutex after uiomove ?


More information about the svn-src-head mailing list