patch-2.3.1 linux/drivers/block/raid5.c

Next file: linux/drivers/block/rd.c
Previous file: linux/drivers/block/qd6580.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/block/raid5.c linux/drivers/block/raid5.c
@@ -91,7 +91,7 @@
 
 void __wait_on_stripe(struct stripe_head *sh)
 {
-	struct wait_queue wait = { current, NULL };
+	DECLARE_WAITQUEUE(wait, current);
 
 	PRINTK(("wait_on_stripe %lu\n", sh->sector));
 	sh->count++;
@@ -1395,7 +1395,7 @@
 		goto abort;
 	memset(raid_conf->stripe_hashtbl, 0, HASH_PAGES * PAGE_SIZE);
 
-	init_waitqueue(&raid_conf->wait_for_stripe);
+	init_waitqueue_head(&raid_conf->wait_for_stripe);
 	PRINTK(("raid5_run(%d) called.\n", minor));
 
   	for (i = 0; i < mddev->nb_dev; i++) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)