From owner-cvs-all Mon Apr 19 14:28:46 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 49D9115208; Mon, 19 Apr 1999 14:28:44 -0700 (PDT) (envelope-from gibbs@FreeBSD.org) Received: (from gibbs@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id OAA22458; Mon, 19 Apr 1999 14:26:19 -0700 (PDT) (envelope-from gibbs@FreeBSD.org) Message-Id: <199904192126.OAA22458@freefall.freebsd.org> From: "Justin T. Gibbs" Date: Mon, 19 Apr 1999 14:26:19 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam cam_periph.c cam_queue.c cam_queue.h cam_xpt.c src/sys/cam/scsi scsi_cd.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk gibbs 1999/04/19 14:26:19 PDT Modified files: sys/cam cam_periph.c cam_queue.c cam_queue.h cam_xpt.c Log: cam_periph.c: Move handling of CAM_AUTOSENSE_FAIL into block dealing with all other scsi status errors. cam_queue.c: cam_queue.h: Fix 'off by one' heap bug in a more efficient manner. Since heap algorithms like to deal with indexes started from 1, offset our heap array pointer at allocation time to make this so for a C environment. This makes the implementation of the algorithm a bit more efficient. cam_xpt.c: Use macros for accessing the head of the heap so that code is isolated from implementation details of the heap. Revision Changes Path 1.12 +4 -3 src/sys/cam/cam_periph.c 1.3 +36 -21 src/sys/cam/cam_queue.c 1.4 +5 -1 src/sys/cam/cam_queue.h 1.52 +22 -23 src/sys/cam/cam_xpt.c Modified files: sys/cam/scsi scsi_cd.c Log: Use macros for accessing the head of the heap so that code is isolated from implementation details of the heap. Revision Changes Path 1.17 +2 -2 src/sys/cam/scsi/scsi_cd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message