Don't use the devstat->busy_count for state decisions in the device
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Nov 2007 04:42:38 +0000 (04:42 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Nov 2007 04:42:38 +0000 (04:42 +0000)
commit52c14e5a915c2bded48824a1e5d12c7db6671e7a
tree5159e13c8ec0e3829517e8a24f110d532d02c932
parentb4c0a84530e055bbe21616cd0e2b59bd24373cb3
Don't use the devstat->busy_count for state decisions in the device
drivers.  Doing so imposes atomicity and locking constraints.

Obtained-from: FreeBSD
sys/bus/cam/scsi/scsi_cd.c
sys/bus/cam/scsi/scsi_da.c