* [patch] cciss: Fix regression that no device nodes are created if no logical drives are configured.
@ 2008-06-09 18:46 scameron
2008-06-09 19:59 ` Mike Miller (OS Dev)
0 siblings, 1 reply; 2+ messages in thread
From: scameron @ 2008-06-09 18:46 UTC (permalink / raw)
To: axboe, linux-kernel; +Cc: mikem, scameron
Fix regression in cciss driver that if no logical drives are configured,
no device nodes at all get created.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
---
drivers/block/cciss.c | 4 ++++
1 files changed, 4 insertions(+)
diff -puN drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives drivers/block/cciss.c
--- linux-2.6.26rc5/drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives 2008-06-09 09:27:37.000000000 -0500
+++ linux-2.6.26rc5-root/drivers/block/cciss.c 2008-06-09 12:33:07.000000000 -0500
@@ -3535,6 +3535,10 @@ static int __devinit cciss_init_one(stru
for (j = 0; j <= hba[i]->highest_lun; j++)
add_disk(hba[i]->gendisk[j]);
+ /* we must register the controller even if no disks exist */
+ if (hba[i]->highest_lun == -1)
+ add_disk(hba[i]->gendisk[0]);
+
return 1;
clean4:
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] cciss: Fix regression that no device nodes are created if no logical drives are configured.
2008-06-09 18:46 [patch] cciss: Fix regression that no device nodes are created if no logical drives are configured scameron
@ 2008-06-09 19:59 ` Mike Miller (OS Dev)
0 siblings, 0 replies; 2+ messages in thread
From: Mike Miller (OS Dev) @ 2008-06-09 19:59 UTC (permalink / raw)
To: scameron; +Cc: axboe, linux-kernel
On Mon, Jun 09, 2008 at 01:46:49PM -0500, scameron@beardog.cca.cpqcorp.net wrote:
>
>
> Fix regression in cciss driver that if no logical drives are configured,
> no device nodes at all get created.
>
> Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Acked-by: Mike Miller <mike.miller@hp.com>
>
> ---
>
> drivers/block/cciss.c | 4 ++++
> 1 files changed, 4 insertions(+)
>
> diff -puN drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives drivers/block/cciss.c
> --- linux-2.6.26rc5/drivers/block/cciss.c~cciss_fix_cxd0_missing_if_no_drives 2008-06-09 09:27:37.000000000 -0500
> +++ linux-2.6.26rc5-root/drivers/block/cciss.c 2008-06-09 12:33:07.000000000 -0500
> @@ -3535,6 +3535,10 @@ static int __devinit cciss_init_one(stru
> for (j = 0; j <= hba[i]->highest_lun; j++)
> add_disk(hba[i]->gendisk[j]);
>
> + /* we must register the controller even if no disks exist */
> + if (hba[i]->highest_lun == -1)
> + add_disk(hba[i]->gendisk[0]);
> +
> return 1;
>
> clean4:
> _
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-09 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-09 18:46 [patch] cciss: Fix regression that no device nodes are created if no logical drives are configured scameron
2008-06-09 19:59 ` Mike Miller (OS Dev)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®