Marcelo,
Please apply this simpler variant. Thanks!
--- /opt/kernel/linux-2.4.21-pre7/drivers/block/ll_rw_blk.c 2003-04-14 10:48:21.000000000 +0200
+++ drivers/block/ll_rw_blk.c 2003-04-14 12:53:03.000000000 +0200
@@ -1375,11 +1403,12 @@
void end_that_request_last(struct request *req)
{
- if (req->waiting != NULL)
- complete(req->waiting);
- req_finished_io(req);
+ struct completion *waiting = req->waiting;
+ req_finished_io(req);
blkdev_release_request(req);
+ if (waiting)
+ complete(waiting);
}
int __init blk_dev_init(void)
-- Jens Axboe- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/