Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2005 12:53:17 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        sparc64@FreeBSD.org
Subject:   Patch to fix locking nits in hme
Message-ID:  <200508041253.18343.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
I have a patch to fix several nits in the hme(4) driver's locking including:

- Using the driver lock instead of Giant in a busdma callback.
- Using callout_drain() in detach.
- Locking access to the mii registers with the driver lock.
- Clearing the RUNNING and OACTIVE flags in stop.
- Re-enabling updating the media from hme_init_locked().
- Making the mutex non-recursive.
- Fixing locking in ioctl.

Patch is at http://www.freebsd.org/~jhb/patches/hme_locking.patch

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



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