Date: Sun, 26 Jul 2009 19:45:00 GMT From: Alexander Motin <mav@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 166595 for review Message-ID: <200907261945.n6QJj0pJ037482@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=166595 Change 166595 by mav@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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907261945.n6QJj0pJ037482>