linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* scsi_id: sending ioctl 2285 to a partition
@ 2012-02-09 20:29 Matthew Wilcox
  2012-02-09 20:42 ` Linus Torvalds
  0 siblings, 1 reply; 17+ messages in thread
From: Matthew Wilcox @ 2012-02-09 20:29 UTC (permalink / raw)
  To: linux-kernel, Paolo Bonzini, Linus Torvalds, Doug Nelson


Commit 0bfc96cb77 adds this printk that triggers tens of thousands of
times during a run of "a well-known database benchmark".  0x2285 is SG_IO.
I'm not sure why scsi_id feels that it needs to repeatedly send a SCSI
INQUIRY to a partition, but there we are.

Oh, userspace is RHEL 6.2 and the kernel in use is 3.2.3.

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: scsi_id: sending ioctl 2285 to a partition
@ 2012-02-10 20:43 Alan Stern
  2012-02-10 20:52 ` Paolo Bonzini
  0 siblings, 1 reply; 17+ messages in thread
From: Alan Stern @ 2012-02-10 20:43 UTC (permalink / raw)
  To: Nelson, Doug
  Cc: Paolo Bonzini, Linus Torvalds, Matthew Wilcox,
	Kernel development list

On Fri, 10 Feb 2012, "Nelson, Doug" wrote:

> On 02/10/2012 11:40 AM, Paolo Bonzini wrote:
> > On 02/10/2012 06:23 PM, Nelson, Doug wrote:
> >>> # scsi devices
> >>> KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*",
> >>> IMPORT{program}="scsi_id --export --whitelisted -d $tempnode",
> >>> ENV{ID_BUS}="scsi"
> >>
> >> The rule I had was not excluding partitions.   I'll fix that and try 
> >> again.
> >
> > So was it a custom rule, or it came with the distro?
> >
> 
> It's a custom rule we've been using for a long time to rename our 672 x 
> ssd's.

By the way, I see the same sort of thing happening with mdadm.  Maybe I 
haven't gotten things configured quite right...

Anyway, here's an example extracted from the system log (this is under
Fedora 16's 3.2.3 kernel):

Feb 10 11:19:52 netrider kernel: [    2.803184] mdadm: sending ioctl 800c0910 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803191] mdadm: sending ioctl 800c0910 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803194] mdadm: sending ioctl 800c0910 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803201] mdadm: sending ioctl 1261 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803203] mdadm: sending ioctl 1261 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803382] mdadm: sending ioctl 800c0910 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803385] mdadm: sending ioctl 800c0910 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803389] mdadm: sending ioctl 800c0910 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803390] mdadm: sending ioctl 800c0910 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.803393] mdadm: sending ioctl 1261 to a partition!
Feb 10 11:19:52 netrider kernel: [    2.975991] md: bind<sdb3>
Feb 10 11:19:52 netrider kernel: [    3.104305] md: bind<sda3>
Feb 10 11:19:52 netrider kernel: [    3.106372] md: raid1 personality registered for level 1
Feb 10 11:19:52 netrider kernel: [    3.106567] bio: create slab <bio-1> at 1
Feb 10 11:19:52 netrider kernel: [    3.106728] md/raid1:md1: active with 2 out of 2 mirrors
Feb 10 11:19:52 netrider kernel: [    3.106841] md1: detected capacity change from 0 to 4301717504
Feb 10 11:19:52 netrider kernel: [    3.108360]  md1: unknown partition table

Alan Stern


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

end of thread, other threads:[~2012-02-11 11:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-09 20:29 scsi_id: sending ioctl 2285 to a partition Matthew Wilcox
2012-02-09 20:42 ` Linus Torvalds
2012-02-09 21:00   ` Matthew Wilcox
2012-02-09 21:11     ` Linus Torvalds
2012-02-10  8:17     ` Paolo Bonzini
2012-02-10 16:10       ` Linus Torvalds
2012-02-10 16:25         ` Paolo Bonzini
2012-02-10 17:23       ` Nelson, Doug
2012-02-10 19:40         ` Paolo Bonzini
2012-02-10 19:41           ` Paolo Bonzini
2012-02-10 19:47           ` Nelson, Doug
2012-02-10 20:57             ` Paolo Bonzini
2012-02-10 23:47               ` Nelson, Doug
2012-02-11  8:39                 ` Paolo Bonzini
2012-02-11 11:07       ` Kay Sievers
  -- strict thread matches above, loose matches on Subject: below --
2012-02-10 20:43 Alan Stern
2012-02-10 20:52 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).