diff options
author | Mike Miller <mike.miller@hp.com> | 2008-11-06 15:53:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-06 18:41:17 -0500 |
commit | 404443081ce5e6f68b5f7eda16c959835ff200c0 (patch) | |
tree | d59d665df58153c0542c7ce283d1cb54dd32f1cf /drivers/block/cciss.c | |
parent | 96b0317906690997c16c7efffbc4c0fafcd6f7f2 (diff) |
cciss: fix sysfs broken symlink regression
Regression introduced by commit 6ae5ce8e8d4de666f31286808d2285aa6a50fa40
("cciss: remove redundant code").
This patch fixes a broken symlink in sysfs that was introduced by the
above commit. We broke it in 2.6.27-rc on or about 20080804. Some
installers are broken if this symlink does not exist and they may not
detect the logical drives configured on the controller. It does not
require being backported into 2.6.26.x or earlier kernels.
Signed-off-by: Mike Miller <mike.miller@hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: <stable@kernel.org> [2.6.27.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 00048bd26e7d..dc38368435aa 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -1370,6 +1370,7 @@ static void cciss_add_disk(ctlr_info_t *h, struct gendisk *disk, | |||
1370 | disk->first_minor = drv_index << NWD_SHIFT; | 1370 | disk->first_minor = drv_index << NWD_SHIFT; |
1371 | disk->fops = &cciss_fops; | 1371 | disk->fops = &cciss_fops; |
1372 | disk->private_data = &h->drv[drv_index]; | 1372 | disk->private_data = &h->drv[drv_index]; |
1373 | disk->driverfs_dev = &h->pdev->dev; | ||
1373 | 1374 | ||
1374 | /* Set up queue information */ | 1375 | /* Set up queue information */ |
1375 | blk_queue_bounce_limit(disk->queue, h->pdev->dma_mask); | 1376 | blk_queue_bounce_limit(disk->queue, h->pdev->dma_mask); |