We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1715760 commit 0ab8c45Copy full SHA for 0ab8c45
hw/block/femu/bbssd/ftl.c
@@ -555,11 +555,11 @@ static void mark_page_invalid(struct ssd *ssd, struct ppa *ppa)
555
}
556
line->ipc++;
557
ftl_assert(line->vpc > 0 && line->vpc <= spp->pgs_per_line);
558
+ /* Adjust the position of the victime line in the pq under over-writes */
559
if (line->pos) {
560
pqueue_change_priority(lm->victim_line_pq, line->vpc - 1, line);
- } else {
561
- line->vpc--;
562
+ line->vpc--;
563
564
if (was_full_line) {
565
/* move line: "full" -> "victim" */
@@ -892,6 +892,7 @@ static void *ftl_thread(void *arg)
892
lat = ssd_read(ssd, req);
893
break;
894
case NVME_CMD_DSM:
895
+ lat = 0;
896
897
default:
898
//ftl_err("FTL received unkown request type, ERROR\n");
0 commit comments