PERFORCE change 165403 for review
Alexander Motin
mav at FreeBSD.org
Mon Jun 29 14:33:59 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165403
Change 165403 by mav at mav_mavbook on 2009/06/29 14:33:10
Fix slots busy management sanity check logic.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/dev/ahci/ahci.c#40 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/dev/ahci/ahci.c#40 (text+ko) ====
@@ -986,7 +986,7 @@
if (ch->slot[tag].state == AHCI_SLOT_EMPTY)
break;
} while (tag != ch->lastslot);
- if (tag == ch->lastslot)
+ if (ch->slot[tag].state != AHCI_SLOT_EMPTY)
device_printf(ch->dev, "ALL SLOTS BUSY!\n");
ch->lastslot = tag;
/* Occupy chosen slot. */
More information about the p4-projects
mailing list