kernel - Fix bug in biowait()
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 29 Mar 2010 20:24:50 +0000 (13:24 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 29 Mar 2010 20:24:50 +0000 (13:24 -0700)
* biowait() was assuming the bio would be done after tsleep returns but
  in fact we have to loop and check again.

sys/kern/vfs_bio.c

index 09fc526..5fd005f 100644 (file)
@@ -3357,7 +3357,6 @@ _biowait(struct bio *bio, const char *wmesg, int to)
                                kprintf("tsleep error biowait %d\n", error);
                                return (error);
                        }
-                       break;
                }
        }