diff options
author | Robert Morris <[email protected]> | 2011-10-11 06:41:37 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2011-10-11 06:41:37 -0400 |
commit | a5fbfe418abd9bdb876407a73b479cdc39046e9a (patch) | |
tree | 9686a62d46f03753dfdcf8564053921a6ead031a /ide.c | |
parent | d73dd097a529bc9d13f514ae6884c4d96a0fffa8 (diff) | |
download | xv6-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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); } |