Sleep on block requests using kthreads
[akaros.git] / kern / src / ext2fs.c
index 8211e05..ccb47bd 100644 (file)
@@ -715,6 +715,7 @@ int ext2_readpage(struct page_map *pm, struct page *page)
        breq->flags = BREQ_READ;
        breq->callback = generic_breq_done;
        breq->data = 0;
+       init_sem(&breq->sem, 0);
        breq->bhs = breq->local_bhs;
        breq->nr_bhs = 0;
        /* Pack the BH pointers in the block request */