Skip to contentSkip to conversation

missing gendisk initialization in cciss.c (Linux-2.2.20)

PATCH New Andreas Haumer 1 participant 1 message Dec 2, 2001 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 missing gendisk initialization in cciss.c (Linux-2.2.20)

Hi!

The following patch adds code to initialize gendisk.fops in cciss.c. It's needed to avoid a kernel warning message when using devfs with the Compaq RAID Controller.

drivers/block/cciss.c Sun Dec 2 19:04:20 2001 renamed from drivers/block/cciss.c Fri Nov 2 17:39:06 2001 +1 -0
@@ -1901,6 +1901,7 @@
                hba[i]->gendisk.max_p = MAX_PART;
                hba[i]->gendisk.max_nr = NWD;
                hba[i]->gendisk.init = cciss_geninit;
+               hba[i]->gendisk.fops = &cciss_fops;
                hba[i]->gendisk.part = hba[i]->hd;
                hba[i]->gendisk.sizes = hba[i]->sizes;
                hba[i]->gendisk.nr_real = hba[i]->num_luns;

HTH

- andreas

Signature · 4 lines
Andreas Haumer                     | mailto:[email protected]
*x Software + Systeme              | http://www.xss.co.at/
Karmarschgasse 51/2/20             | Tel: +43-1-6060114-0
A-1100 Vienna, Austria             | Fax: +43-1-6060114-71