<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 9pt;
font-family:·s²Ó©úÅé
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">Dear Disksim users,</pre><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">I'm using Disksim with ssd-add-on. </pre><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">I want to implement a special priority scheduler, so i modified ioqueue_insert_fcfs_to_queue function in disksim_ioqueue.c.</pre><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">I reordered the requests in the queue according to the priority every time when a new request arrived.</pre><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">But simulation stopped with error message : </pre><pre style="white-space: pre-wrap; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">Completed event not found pending in io
 queue - blkno 5991488, tmp->blkno 5991488, tmp->totalsize 8, 0, 0, 0, 8
tmp->state 0
disksim: disksim_ioqueue.c:2987: ioqueue_remove_completed_<wbr>request: Assertion `0' failed.</pre><font face="monospace" style="color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);"><span style="white-space: pre-wrap;"> <br></span></font><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">How to reorder the requests in the queue correctly?</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);"><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Please help me , thanks a lot.</div>                                          </div></body>
</html>