patch-2.3.32 linux/drivers/block/ide-disk.c

Next file: linux/drivers/block/ide-probe.c
Previous file: linux/drivers/block/ide-cd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.31/linux/drivers/block/ide-disk.c linux/drivers/block/ide-disk.c
@@ -242,7 +242,10 @@
 		rq->sector += nsect;
 #endif
 		if ((rq->nr_sectors -= nsect) <= 0)
+		{
+	                spin_unlock_irqrestore(&io_request_lock, flags);
 			break;
+		}
 		if ((rq->current_nr_sectors -= nsect) == 0) {
 			if ((rq->bh = rq->bh->b_reqnext) != NULL) {
 				rq->current_nr_sectors = rq->bh->b_size>>9;

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