[Denali] No longer store Commands on the port.

This commit is contained in:
Drew Galbraith 2023-12-08 14:48:41 -08:00
parent 28a0f02b05
commit e71017070f
6 changed files with 26 additions and 30 deletions

View file

@ -21,7 +21,7 @@ glcr::Status DenaliServer::HandleRead(const ReadRequest& req,
mmth::OwnedMemoryRegion::ContiguousPhysical(req.size() * 512, &paddr);
DmaReadCommand command(req.lba(), req.size(), paddr);
ASSIGN_OR_RETURN(auto semaphore, device->IssueCommand(&command));
ASSIGN_OR_RETURN(auto semaphore, device->IssueCommand(command));
semaphore->Wait();
resp.set_device_id(req.device_id());
@ -50,7 +50,7 @@ glcr::Status DenaliServer::HandleReadMany(const ReadManyRequest& req,
uint64_t lba = req.lba().at(i);
uint64_t size = req.sector_cnt().at(i);
DmaReadCommand command(lba, size, region_paddr);
ASSIGN_OR_RETURN(auto semaphore, device->IssueCommand(&command));
ASSIGN_OR_RETURN(auto semaphore, device->IssueCommand(command));
semaphore->Wait();
region_paddr += size * 512;