PERFORCE change 166595 for review
Alexander Motin
mav at FreeBSD.org
Sun Jul 26 19:45:02 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=166595
Change 166595 by mav at mav_mavbook on 2009/07/26 19:44:46
Change cam_periph_lock() from inline to define to make debugging
more meaningfull.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/cam/cam_periph.h#17 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/cam/cam_periph.h#17 (text+ko) ====
@@ -177,17 +177,9 @@
int cam_periph_error(union ccb *ccb, cam_flags camflags,
u_int32_t sense_flags, union ccb *save_ccb);
-static __inline void
-cam_periph_lock(struct cam_periph *periph)
-{
- mtx_lock(periph->sim->mtx);
-}
-
-static __inline void
-cam_periph_unlock(struct cam_periph *periph)
-{
- mtx_unlock(periph->sim->mtx);
-}
+#define cam_periph_lock(periph) mtx_lock((periph)->sim->mtx)
+#define cam_periph_unlock(periph) mtx_unlock((periph)->sim->mtx)
+#define cam_periph_owned(periph) mtx_owned((periph)->sim->mtx)
#endif /* _KERNEL */
#endif /* _CAM_CAM_PERIPH_H */
More information about the p4-projects
mailing list