svn commit: r199389 - stable/8/sys/cam
Alexander Motin
mav at FreeBSD.org
Tue Nov 17 15:14:13 UTC 2009
Author: mav
Date: Tue Nov 17 15:14:13 2009
New Revision: 199389
URL: http://svn.freebsd.org/changeset/base/199389
Log:
MFC r198372, r198377:
Implement cam_ccbq_fini().
This is effectively NULL change, but makes this API a bit more consistent.
Modified:
stable/8/sys/cam/cam_queue.c
stable/8/sys/cam/cam_xpt.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/cam/cam_queue.c
==============================================================================
--- stable/8/sys/cam/cam_queue.c Tue Nov 17 15:08:01 2009 (r199388)
+++ stable/8/sys/cam/cam_queue.c Tue Nov 17 15:14:13 2009 (r199389)
@@ -289,7 +289,7 @@ void
cam_ccbq_free(struct cam_ccbq *ccbq)
{
if (ccbq) {
- camq_fini(&ccbq->queue);
+ cam_ccbq_fini(ccbq);
free(ccbq, M_CAMCCBQ);
}
}
@@ -338,6 +338,13 @@ cam_ccbq_init(struct cam_ccbq *ccbq, int
return (0);
}
+void
+cam_ccbq_fini(struct cam_ccbq *ccbq)
+{
+
+ camq_fini(&ccbq->queue);
+}
+
/*
* Heap routines for manipulating CAM queues.
*/
Modified: stable/8/sys/cam/cam_xpt.c
==============================================================================
--- stable/8/sys/cam/cam_xpt.c Tue Nov 17 15:08:01 2009 (r199388)
+++ stable/8/sys/cam/cam_xpt.c Tue Nov 17 15:14:13 2009 (r199389)
@@ -4447,7 +4447,7 @@ xpt_release_device(struct cam_eb *bus, s
devq = bus->sim->devq;
cam_devq_resize(devq, devq->alloc_queue.array_size - 1);
camq_fini(&device->drvq);
- camq_fini(&device->ccbq.queue);
+ cam_ccbq_fini(&device->ccbq);
free(device, M_CAMXPT);
xpt_release_target(bus, target);
}
More information about the svn-src-stable
mailing list