From: Chunbo Luo <chunbo.luo@windriver.com>
To: Tejun Heo <tj@kernel.org>
Cc: linux-kernel@vger.kernel.org, jeff@garzik.org,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH]: libata-scsi: Don't start hotplug work queue if hotplug is disabled
Date: Mon, 21 Jul 2008 11:03:05 +0800 [thread overview]
Message-ID: <1216609385.6358.14.camel@pek-cluo> (raw)
In-Reply-To: <48809BA0.8060500@kernel.org>
On Fri, 2008-07-18 at 22:33 +0900, Tejun Heo wrote:
> Chunbo Luo wrote:
> > Hi
> >
> > When ata_scsi_scan_host() scan device failed, it will start a work queue
> > unconditionally. This may cause some noisy messages. This patch fix this
> > problem.
>
> ATA_PFLAG_SCSI_HOTPLUG doesn't mean that hotplug is enabled. It
> indicates that EH needs to schedule a kick at SCSI's ass and make it
> scan for discovered devices && work running on ata_aux_wq testing it
> doesn't mean anything. There's no synchronization.
>
> > Previously, queue_delayed_work() was started unconditionally, but if
> > ATA_PFLAG_SCSI_HOTPLUG is not set and we do this, the work queue may
> > cause multiple messages like this:
> >
> > ata3.00: WARNING: ATAPI is not supported with this driver, device ignored.
>
> And this message has nothing to do with SCSI. It's printed by libata
> proper for several drivers which don't support ATAPI. Did the patch
> really kill the warning messages? Can you please post full boot log
> from 2.6.26 w/o the patch?
If the drivers don't support ATAPI, the hotplug task cannot find linked device,
and it will start the hotplug task again. Which will print messages continously
like this.
----------
ata3.00: WARNING: ATAPI is not supported with this driver, device ignored.
ata3.00: WARNING: ATAPI is not supported with this driver, device ignored.
ata3.00: WARNING: ATAPI is not supported with this driver, device ignored.
ata3.00: WARNING: ATAPI is not supported with this driver, device ignored.
...
------------
We should find a way to avoid this kind of noisy warning messages.
This patch cannot kill the warning messages, but it can avoid the
duplicate warning messages.
>
> Andrew, please drop the patch from -mm. Thanks.
>
next prev parent reply other threads:[~2008-07-21 3:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 2:20 [PATCH]: libata-scsi: Don't start hotplug work queue if hotplug is disabled Chunbo Luo
2008-07-18 13:33 ` Tejun Heo
2008-07-21 3:03 ` Chunbo Luo [this message]
2008-07-21 4:40 ` Tejun Heo
2008-07-21 6:16 ` Chunbo Luo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1216609385.6358.14.camel@pek-cluo \
--to=chunbo.luo@windriver.com \
--cc=akpm@linux-foundation.org \
--cc=jeff@garzik.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox