Re: LOR in if_detach

From: Jeffrey Hsu <hsu_at_FreeBSD.org>
Date: Fri, 11 Apr 2003 20:29:35 -0700
  > Do you think of something like the following?

  > static int
  > foo_detach(device_t dev)
  > {
  > ...
  >
  >	LOCK(softc);

The other big race here is between detach and the next attach.
This is better solved with a lock at the interface layer rather
than on the softc.

							Jeffrey
Received on Fri Apr 11 2003 - 18:42:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC