Subject: Re: kernel diagnostic assertion "l->l_holdcnt == 0" in i386/syscall.c
To: enami tsugutomo <enami@sm.sony.co.jp>
From: Andreas Wrede <andreas@planix.com>
List: current-users
Date: 09/30/2004 22:50:10
--Apple-Mail-3-180210361
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On 30-Sep-04, at 9:34 PM, enami tsugutomo wrote:

> YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> writes:
>
>> any fancy filesystems?

ffsv1 on IDE, procfs, kernfs, nullfs and amd:

Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/wd0a     3049422  2812148     84803    97%    /
/dev/wd0e      645166    86692    526216    14%    /var
/dev/wd1e   118746820 22916024  89893456    20%    /m5
/dev/wd0g    14466171  8221233   5521630    59%    /m2
kernfs              1        1         0   100%    /kern
procfs              4        4         0   100%    /proc
/m2/local    14466171  8221233   5521630    59%    /usr/local
/m2/home     14466171  8221233   5521630    59%    /home

/dev/wd0a on / type ffs (soft dependencies, NFS exported, local)
/dev/wd0e on /var type ffs (soft dependencies, NFS exported, local)
/dev/wd1e on /m5 type ffs (soft dependencies, NFS exported, local)
/dev/wd0g on /m2 type ffs (soft dependencies, NFS exported, local)
kernfs on /kern type kernfs (local)
procfs on /proc type procfs (local)
/m2/local on /usr/local type null (local)
/m2/home on /home type null (local)
pid116@woffi:/Network/Servers on /Network/Servers type nfs (hidden)


> Or scsi device?

Not mounted but in the system (as an raid-1 alternate root).

But your sys/dev/scsipi/scsipi_base.c patch fixed the problem.

> Index: scsipi_base.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/scsipi/scsipi_base.c,v
> retrieving revision 1.120
> diff -u -r1.120 scsipi_base.c
> --- scsipi_base.c	18 Sep 2004 18:49:50 -0000	1.120
> +++ scsipi_base.c	1 Oct 2004 01:18:31 -0000
> @@ -2030,6 +2030,9 @@
>  	 * into....
>  	 */
>   free_xs:
> +	if (xs->xs_control & XS_CTL_DATA_ONSTACK)
> +		PRELE(curlwp);
> +
>  	s = splbio();
>  	scsipi_put_xs(xs);
>  	splx(s);
> @@ -2040,8 +2043,6 @@
>  	 */
>  	scsipi_run_queue(chan);
>
> -	if (xs->xs_control & XS_CTL_DATA_ONSTACK)
> -		PRELE(curlwp);
>  	return (error);
>  }

Thanks your quick responses!

-- 
	aew

--Apple-Mail-3-180210361
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBXMXiEh/h9J/TQyERAkclAJ93pi6L09+XxFzrv1JEDkBNauD3kwCg2wWz
vBC+vEW6E20DNiTq+jaDXbY=
=O6yI
-----END PGP SIGNATURE-----

--Apple-Mail-3-180210361--