From 5b58f2f951911f1075788268f99efccf1dba60eb Mon Sep 17 00:00:00 2001 From: mckusick Date: Sat, 26 Jun 1999 02:47:16 +0000 Subject: Convert buffer locking from using the B_BUSY and B_WANTED flags to using lockmgr locks. This commit should be functionally equivalent to the old semantics. That is, all buffer locking is done with LK_EXCLUSIVE requests. Changes to take advantage of LK_SHARED and LK_RECURSIVE will be done in future commits. --- sys/cam/cam_periph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/cam') diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index b14bea7..6b6e0b4 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_periph.c,v 1.16 1999/05/25 17:10:04 ken Exp $ + * $Id: cam_periph.c,v 1.17 1999/05/25 20:17:28 gibbs Exp $ */ #include @@ -612,7 +612,7 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) mapinfo->bp[i]->b_bufsize = lengths[i]; /* set the flags */ - mapinfo->bp[i]->b_flags = flags[i] | B_PHYS | B_BUSY; + mapinfo->bp[i]->b_flags = flags[i] | B_PHYS; /* map the buffer into kernel memory */ vmapbuf(mapinfo->bp[i]); @@ -673,7 +673,7 @@ cam_periph_unmapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo) vunmapbuf(mapinfo->bp[i]); /* clear the flags we set above */ - mapinfo->bp[i]->b_flags &= ~(B_PHYS|B_BUSY); + mapinfo->bp[i]->b_flags &= ~B_PHYS; /* release the buffer */ relpbuf(mapinfo->bp[i], NULL); -- cgit v1.1