From nobody@FreeBSD.org  Tue May  2 11:51:18 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 306AD37BA89
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 May 2000 11:51:18 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id LAA45043;
	Tue, 2 May 2000 11:51:17 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200005021851.LAA45043@freefall.freebsd.org>
Date: Tue, 2 May 2000 11:51:17 -0700 (PDT)
From: mdiclaud@cidera.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: aio_suspend doesn't work when nents == AIO_LISTIO_MAX
X-Send-Pr-Version: www-1.0

>Number:         18350
>Category:       kern
>Synopsis:       aio_suspend doesn't work when nents == AIO_LISTIO_MAX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May  2 12:00:01 PDT 2000
>Closed-Date:    Tue Jan 1 23:34:17 PST 2002
>Last-Modified:  Tue Jan 01 23:35:27 PST 2002
>Originator:     Mike DiClaudio
>Release:        3.4-RELEASE
>Organization:
Cidera, Inc
>Environment:
FreeBSD flash.skycache.com 3.4-RELEASE FreeBSD 3.4-RELEASE #2: Mon Apr 3 14:52:24 EDT 2000 toor@flash.skycache.com:/usr/src/sys/compile/VAST_DEBUG i386
>Description:
when calling aio_suspend( ..., AIO_LISTIO_MAX, ... ), it returns with EINVAL

also, man pages for aio_suspend don't match comments in the code:  man pages say it returns when *all* requests complete, code says when *any* complete.

>How-To-Repeat:

>Fix:
modify /sys/kern/vfs_aio.c, at the beginning of the aio_suspend function, change:

  if (uap->nent >= AIO_LISTIO_MAX)
    return EINVAL;

change ">=" to ">"

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: alc 
State-Changed-When: Tue Jan 1 23:34:17 PST 2002 
State-Changed-Why:  
Fixed in 4.5-RELEASE. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18350 
>Unformatted:
