aboutsummaryrefslogtreecommitdiff
path: root/sys/cam
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>1999-06-26 02:47:16 +0000
committerKirk McKusick <mckusick@FreeBSD.org>1999-06-26 02:47:16 +0000
commit67812eacd74d5841e890b703d4ec2d5a76288830 (patch)
treedaad70481467b7aa233a8f5e919b7eec6d7cc908 /sys/cam
parent5a903f8d735f0cc4a378e9f85fa3ad30a675df06 (diff)
downloadsrc-67812eacd74d5841e890b703d4ec2d5a76288830.tar.gz
src-67812eacd74d5841e890b703d4ec2d5a76288830.zip
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.
Notes
Notes: svn path=/head/; revision=48225
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_periph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index b14bea78da02..6b6e0b4ded12 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 <sys/param.h>
@@ -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);