mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
There is no need to muck about with the B_PHYS flag here. We never even
get close to DEV_STRATEGY() which is the only place it is relevant.
This commit is contained in:
parent
547fa0d9b7
commit
f485bd3a10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121194
1 changed files with 0 additions and 8 deletions
|
@ -638,9 +638,6 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo)
|
|||
/* set the transfer length, we know it's < DFLTPHYS */
|
||||
mapinfo->bp[i]->b_bufsize = lengths[i];
|
||||
|
||||
/* set the flags */
|
||||
mapinfo->bp[i]->b_flags = B_PHYS;
|
||||
|
||||
/* set the direction */
|
||||
mapinfo->bp[i]->b_iocmd = flags[i];
|
||||
|
||||
|
@ -656,10 +653,8 @@ cam_periph_mapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo)
|
|||
for (j = 0; j < i; ++j) {
|
||||
*data_ptrs[j] = mapinfo->bp[j]->b_saveaddr;
|
||||
vunmapbuf(mapinfo->bp[j]);
|
||||
mapinfo->bp[j]->b_flags &= ~B_PHYS;
|
||||
relpbuf(mapinfo->bp[j], NULL);
|
||||
}
|
||||
mapinfo->bp[i]->b_flags &= ~B_PHYS;
|
||||
relpbuf(mapinfo->bp[i], NULL);
|
||||
PRELE(curproc);
|
||||
return(EACCES);
|
||||
|
@ -720,9 +715,6 @@ cam_periph_unmapmem(union ccb *ccb, struct cam_periph_map_info *mapinfo)
|
|||
/* unmap the buffer */
|
||||
vunmapbuf(mapinfo->bp[i]);
|
||||
|
||||
/* clear the flags we set above */
|
||||
mapinfo->bp[i]->b_flags &= ~B_PHYS;
|
||||
|
||||
/* release the buffer */
|
||||
relpbuf(mapinfo->bp[i], NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue