public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [SCSI] SD driver question
@ 2007-07-04 16:44 Gabriel C
  2007-07-04 16:56 ` Uwe Kiewel
  2007-07-05 20:37 ` James Bottomley
  0 siblings, 2 replies; 5+ messages in thread
From: Gabriel C @ 2007-07-04 16:44 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: linux-scsi, James.Bottomley

Hello,

Is there any reason why sd is printing the driver informations for each 
disk twice in dmesg ?

...

sd 0:0:0:0: [sda] 35843670 512-byte hardware sectors (18352 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 9f 00 10 08
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports 
DPO and FUA
sd 0:0:0:0: [sda] 35843670 512-byte hardware sectors (18352 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 9f 00 10 08
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports 
DPO and FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0

etc
...


Is a bit annoying and floodish ;) on boxes with a lot SCSI , *ATA disks.


Regards,

Gabriel C



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [SCSI] SD driver question
  2007-07-04 16:44 [SCSI] SD driver question Gabriel C
@ 2007-07-04 16:56 ` Uwe Kiewel
  2007-07-04 17:29   ` Gabriel C
  2007-07-05 20:37 ` James Bottomley
  1 sibling, 1 reply; 5+ messages in thread
From: Uwe Kiewel @ 2007-07-04 16:56 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List, linux-scsi, James.Bottomley

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gabriel C schrieb:
> Hello,
> 
> Is there any reason why sd is printing the driver informations for each
> disk twice in dmesg ?
> 
> ...
> 
> sd 0:0:0:0: [sda] 35843670 512-byte hardware sectors (18352 MB)
> sd 0:0:0:0: [sda] Write Protect is off
> sd 0:0:0:0: [sda] Mode Sense: 9f 00 10 08
> sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports
> DPO and FUA
> sd 0:0:0:0: [sda] 35843670 512-byte hardware sectors (18352 MB)
> sd 0:0:0:0: [sda] Write Protect is off
> sd 0:0:0:0: [sda] Mode Sense: 9f 00 10 08
> sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports
> DPO and FUA
> sda: sda1
> sd 0:0:0:0: [sda] Attached SCSI disk
> sd 0:0:0:0: Attached scsi generic sg0 type 0

the samne here.
...
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HM080HC  AM10 PQ: 0 ANSI: 5
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
...

Please, can you tell the version of the kernel you use? I use:
[abkie@config-lappi ~]$ uname -r
2.6.21-1.3228.fc7
It is the current Fedora 7 kernel.


Regards,
Uwe

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGi9FFr6SFaBB7DLURAtb0AJ0YWiuBsEcOLChPvQcx6dOwvmPOxACfUsGT
3glIHhUVpqBOcizMaTcqU5M=
=xTfs
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [SCSI] SD driver question
  2007-07-04 16:56 ` Uwe Kiewel
@ 2007-07-04 17:29   ` Gabriel C
  2007-07-05 17:36     ` Uwe Kiewel
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel C @ 2007-07-04 17:29 UTC (permalink / raw)
  To: Uwe Kiewel; +Cc: Linux Kernel Mailing List, linux-scsi, James.Bottomley

Uwe Kiewel wrote:
> Please, can you tell the version of the kernel you use? I use:
> [abkie@config-lappi ~]$ uname -r
> 2.6.21-1.3228.fc7
> It is the current Fedora 7 kernel.
>
>   
Sure.

crazy@lara:~$ uname -r
2.6.22-rc6-git4

> Regards,
> Uwe
>   

Regards,
Gabriel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [SCSI] SD driver question
  2007-07-04 17:29   ` Gabriel C
@ 2007-07-05 17:36     ` Uwe Kiewel
  0 siblings, 0 replies; 5+ messages in thread
From: Uwe Kiewel @ 2007-07-05 17:36 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List, linux-scsi, James.Bottomley

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gabriel C schrieb:
> Uwe Kiewel wrote:
>> Please, can you tell the version of the kernel you use? I use:
>> [abkie@config-lappi ~]$ uname -r
>> 2.6.21-1.3228.fc7
>> It is the current Fedora 7 kernel.
>>
>>   
> Sure.
> 
> crazy@lara:~$ uname -r
> 2.6.22-rc6-git4
> 

An older kernel has the same behavior. Version is: 2.6.20-1.2952.fc6

Now I have no new Idea...


Regards,
Uwe

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGjSwwr6SFaBB7DLURAivLAKCRvtemO+WOiehW1AOBxwSsrz1o8gCeProq
r0ic/W0xNL7U34bwOqVX0dg=
=3OAG
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [SCSI] SD driver question
  2007-07-04 16:44 [SCSI] SD driver question Gabriel C
  2007-07-04 16:56 ` Uwe Kiewel
@ 2007-07-05 20:37 ` James Bottomley
  1 sibling, 0 replies; 5+ messages in thread
From: James Bottomley @ 2007-07-05 20:37 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List, linux-scsi

On Wed, 2007-07-04 at 18:44 +0200, Gabriel C wrote: 
> Is there any reason why sd is printing the driver informations for each 
> disk twice in dmesg ?

Yes, it's because of the genhd revalidate rework done by Al Viro in the
block device revalidation path.  The problem is that we need to run a
disk revalidate early on in sd bringup to get all the necessary
information ... the gendisk code then does a disk revalidate to read the
partition table, resulting in the two identical sets of messages being
printed.  The best fix anyone could suggest was to try to suppress the
messages of the first one using some sort of per scsi_disk flag ...
however, no-one's very keen on this approach.

James



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-05 20:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 16:44 [SCSI] SD driver question Gabriel C
2007-07-04 16:56 ` Uwe Kiewel
2007-07-04 17:29   ` Gabriel C
2007-07-05 17:36     ` Uwe Kiewel
2007-07-05 20:37 ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox