fix: use wait queue for blocking process
[lunaix-os.git] / lunaix-os / hal / ahci / atapi.c
index b6d41fa6005020d071ab48d02905544c4347df5f..26ad5332aca66cf8c623a7c70c3ecd6e8220eb77 100644 (file)
@@ -77,7 +77,7 @@ scsi_submit(struct hba_device* dev, struct blkio_req* io_req)
     } else {
         scsi_create_packet12((struct scsi_cdb12*)cdb,
                              write ? SCSI_WRITE_BLOCKS_12 : SCSI_READ_BLOCKS_12,
-                             io_req->blk_addr,
+                             io_req->blk_addr & -1,
                              count);
     }