patch-2.3.47 linux/drivers/block/loop.c

Next file: linux/drivers/block/lvm-snap.c
Previous file: linux/drivers/block/ll_rw_blk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/block/loop.c linux/drivers/block/loop.c
@@ -377,13 +377,13 @@
 	spin_lock_irq(&io_request_lock);
 	current_request->sector += current_request->current_nr_sectors;
 	current_request->nr_sectors -= current_request->current_nr_sectors;
-	list_add(&current_request->queue, &current_request->q->queue_head);
+	list_add(&current_request->queue, &q->queue_head);
 	end_request(1);
 	goto repeat;
 error_out_lock:
 	spin_lock_irq(&io_request_lock);
 error_out:
-	list_add(&current_request->queue, &current_request->q->queue_head);
+	list_add(&current_request->queue, &q->queue_head);
 	end_request(0);
 	goto repeat;
 }

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