Re: PATCH: Fixes for ide-disk.c

Alan Cox (alan@lxorguk.ukuu.org.uk)
05 Apr 2003 17:46:41 +0100


On Sad, 2003-04-05 at 08:31, Nigel Cunningham wrote:
> @@ -1527,7 +1527,7 @@
> /* set the drive to standby */
> printk(KERN_INFO "suspending: %s ", drive->name);
> do_idedisk_standby(drive);
> - drive->blocked = 1;
> + drive->blocked++;
>

Drive->blocked is a single bit field. Its not a counting lock. Either
we are blocked or not.

Alan

-
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/