]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cciss: fix negative logical drive count in procfs
authorMike Miller <mike.miller@hp.com>
Mon, 4 Aug 2008 09:54:53 +0000 (11:54 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 6 Aug 2008 10:30:03 +0000 (12:30 +0200)
commiteece695f8bf9d1aacf3a119ab8e21db31948e40b
treee778baf3d2765f307dd04183eee33ef651064ec9
parent6ae5ce8e8d4de666f31286808d2285aa6a50fa40
cciss: fix negative logical drive count in procfs

This patch fixes a problem where the logical volume count may go negative.
In some instances if several logical are configured on a controller and all
of them are deleted using the online utilities the volume count in /proc may
go negative with no way get it correct again.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c