NetBSD Problem Report #23718

Received: (qmail 10675 invoked by uid 605); 11 Dec 2003 13:45:46 -0000
Message-Id: <200312111345.hBBDjghJ017342@mofo.grunta.com>
Date: Fri, 12 Dec 2003 00:45:42 +1100 (EST)
From: grant@NetBSD.org
Sender: gnats-bugs-owner@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: umount delay causes repeated keystrokes
X-Send-Pr-Version: 3.95

>Number:         23718
>Category:       kern
>Synopsis:       I/O delay causes repeated keystrokes
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 11 13:46:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Tue Dec 23 07:34:01 +0000 2003
>Originator:     grant beattie
>Release:        NetBSD 1.6ZG
>Organization:
>Environment:
System: NetBSD mofo 1.6ZG NetBSD 1.6ZG (MOFO) #2: Thu Dec 11 00:30:00 EST 2003 grant@mofo:/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
>Description:
on my workstation, with a low delay-to-repeat, running "umount
/mountpoint", regardless of whether or not anything is mounted there,
causes repeated keystrokes.

I'm guessing this happens with more than just umount...

>How-To-Repeat:

mofo: {1} xset r rate 200 40
mofo: {2} time umount /cdrom

umount: /cdrom: not currently mounted
0.0u 0.2s 0:00.28 96.4% 0+0k 0+11io 0pf+0w
mofo: {3} mofo: {3} 

two extra <enter> keypresses somehow find their way in.

with a higher time to repeat, this doesn't happen:

mofo: {3} xset r rate 400 40
mofo: {4} time umount /cdrom
umount: /cdrom: not currently mounted
0.0u 0.2s 0:00.27 92.5% 0+0k 0+8io 0pf+0w
mofo: {5}

it seems the time taken making system calls contributes to this, and
200ms is a fairly long time to determine there's nothing mounted
there (this is a p3-866, it clearly shouldn't take that long or screw
up keyboard input :)

this is easily reproducable:

- when the machine is busy
- with a low time-to-repeat

>Fix:
>Release-Note:
>Audit-Trail:

From: grant beattie <grant@NetBSD.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: Re: kern/23718: umount delay causes repeated keystrokes
Date: Tue, 23 Dec 2003 11:18:15 +1100

 > on my workstation, with a low delay-to-repeat, running "umount
 > /mountpoint", regardless of whether or not anything is mounted there,
 > causes repeated keystrokes.
 > 
 > I'm guessing this happens with more than just umount...

 indeed it does, sync(8) causes this to happen every time. it is
 completely unacceptable on a multi-user system. I've raised this PR to
 critical.


From: Martin Husemann <martin@duskware.de>
To: grant beattie <grant@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/23718: umount delay causes repeated keystrokes
Date: Tue, 23 Dec 2003 08:33:07 +0100

 > this is easily reproducable:
 > 
 > - when the machine is busy
 > - with a low time-to-repeat

 Sorry, I can't reproduce this. There must be more to it.

 >  indeed it does, sync(8) causes this to happen every time. it is
 >  completely unacceptable on a multi-user system. I've raised this PR to
 >  critical.

 Sync does not cause it for me either. Does it happen to you on other machines
 as well?

 Martin
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.