summaryrefslogtreecommitdiff
path: root/ide.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2011-10-11 06:41:37 -0400
committerRobert Morris <[email protected]>2011-10-11 06:41:37 -0400
commita5fbfe418abd9bdb876407a73b479cdc39046e9a (patch)
tree9686a62d46f03753dfdcf8564053921a6ead031a /ide.c
parentd73dd097a529bc9d13f514ae6884c4d96a0fffa8 (diff)
downloadxv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.tar.gz
xv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.tar.bz2
xv6-labs-a5fbfe418abd9bdb876407a73b479cdc39046e9a.zip
clarify some FS comments
Diffstat (limited to 'ide.c')
-rw-r--r--ide.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ide.c b/ide.c
index 4165831..7946f94 100644
--- a/ide.c
+++ b/ide.c
@@ -93,7 +93,7 @@ ideintr(void)
{
struct buf *b;
- // Take first buffer off queue.
+ // First queued buffer is the active request.
acquire(&idelock);
if((b = idequeue) == 0){
release(&idelock);
@@ -134,11 +134,11 @@ iderw(struct buf *b)
if(b->dev != 0 && !havedisk1)
panic("iderw: ide disk 1 not present");
- acquire(&idelock); // DOC:acquire-lock
+ acquire(&idelock); //DOC: acquire-lock
// Append b to idequeue.
b->qnext = 0;
- for(pp=&idequeue; *pp; pp=&(*pp)->qnext) // DOC:insert-queue
+ for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC: insert-queue
;
*pp = b;
@@ -147,7 +147,6 @@ iderw(struct buf *b)
idestart(b);
// Wait for request to finish.
- // Assuming will not sleep too long: ignore proc->killed.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
sleep(b, &idelock);
}