mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
read_write(): Consider a request created from an io_operation DMA safe. This
saves some checking in the bus manager. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37199 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1043be1d7c
commit
02507604e7
@ -123,6 +123,11 @@ read_write(scsi_periph_device_info *device, scsi_ccb *request,
|
||||
|
||||
request->flags = isWrite ? SCSI_DIR_OUT : SCSI_DIR_IN;
|
||||
|
||||
// io_operations are generated by a DMAResource and thus contain DMA
|
||||
// safe physical vectors
|
||||
if (operation != NULL)
|
||||
request->flags |= SCSI_DMA_SAFE;
|
||||
|
||||
// make sure we avoid 10 byte commands if they aren't supported
|
||||
if (!device->rw10_enabled || device->preferred_ccb_size == 6) {
|
||||
// restricting transfer is OK - the block manager will
|
||||
|
Loading…
x
Reference in New Issue
Block a user