linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Tony Luck <tony.luck@intel.com>
Cc: linux-scsi@vger.kernel.org, linux-next@vger.kernel.org,
	James Bottomley <JBottomley@parallels.com>
Subject: Re: scsi: killing requests for dead queue
Date: Fri, 4 Nov 2011 18:38:45 +0100	[thread overview]
Message-ID: <201111041838.46062.bvanassche@acm.org> (raw)
In-Reply-To: <4eb3064c133909be1c@agluck-desktop.sc.intel.com>

On Thursday 03 November 2011 22:23:24 you wrote:
> First saw these messages on next-20111102 (but my previous build from linux-next
> was next-20111017 ... so a big gap).  Still there today in next-20111103. Not seeing
> these messages from Linus 3.2 merge window builds.
> 
> scsi: killing requests for dead queue

Does the patch below help ?

[PATCH] [SCSI] Silence queue cleanup code

Commit 3308511 causes the SCSI queue cleanup code to be invoked
for every killed queue. Since the SCSI scanning code can create
and destroy SCSI queues repeatedly while probing LUNs, the
following message can be printed several times during boot:

    scsi: killing requests for dead queue

This confuses users, so change the severity of that message to
KERN_DEBUG.

See also http://marc.info/?l=linux-scsi&m=132035543616061.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reported-by: Tony Luck <tony.luck@intel.com>
Cc: <stable@kernel.org>
Cc: James Bottomley <JBottomley@Parallels.com>
---
 drivers/scsi/scsi_lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index b4d43ae..79ce802 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1489,7 +1489,7 @@ static void scsi_request_fn(struct request_queue *q)
 	struct request *req;
 
 	if (!sdev) {
-		printk("scsi: killing requests for dead queue\n");
+		pr_debug("scsi: killing requests for dead queue\n");
 		while ((req = blk_peek_request(q)) != NULL)
 			scsi_kill_request(req, q);
 		return;
-- 
1.7.3.4

  reply	other threads:[~2011-11-04 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 21:23 scsi: killing requests for dead queue Luck, Tony
2011-11-04 17:38 ` Bart Van Assche [this message]
2011-11-04 18:07   ` Luck, Tony
2011-11-04 18:26     ` Bart Van Assche
2011-11-04 19:05       ` Luck, Tony

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=201111041838.46062.bvanassche@acm.org \
    --to=bvanassche@acm.org \
    --cc=JBottomley@parallels.com \
    --cc=linux-next@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=tony.luck@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).