public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: Keith Mannthey <kmannth@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, Chandra Seetharaman <sekharan@us.ibm.com>
Subject: Re: [Patch][RFC] Supress Buffer I/O errors when SCSI REQ_QUIET flag set
Date: Tue, 25 Nov 2008 10:19:18 +0100	[thread overview]
Message-ID: <20081125091917.GU26308@kernel.dk> (raw)
In-Reply-To: <1227561983.6487.32.camel@keith-laptop>

On Mon, Nov 24 2008, Keith Mannthey wrote:
> Allow the scsi request REQ_QUIET flag to be propagated to the buffer
> file system layer. The basic ideas is to pass the flag from the scsi
> request to the bio (block IO) and then to the buffer layer.  The buffer
> layer can then suppress needless printks. 
> 
> This patch declutters the kernel log by removed the 40-50 (per lun)
> buffer io error messages seen during a boot in my multipath setup . It
> is a good chance any real errors will be missed in the "noise" it the
> logs without this patch. 
> 
> During boot I see blocks of messages like 
> "
> __ratelimit: 211 callbacks suppressed
> Buffer I/O error on device sdm, logical block 5242879
> Buffer I/O error on device sdm, logical block 5242879
> Buffer I/O error on device sdm, logical block 5242847
> Buffer I/O error on device sdm, logical block 1
> Buffer I/O error on device sdm, logical block 5242878
> Buffer I/O error on device sdm, logical block 5242879
> Buffer I/O error on device sdm, logical block 5242879
> Buffer I/O error on device sdm, logical block 5242879
> Buffer I/O error on device sdm, logical block 5242879
> Buffer I/O error on device sdm, logical block 5242872
> "
> in my logs. 
> 
> My disk environment is multipath fiber channel using the SCSI_DH_RDAC
> code and multipathd.  This topology includes an "active" and "ghost"
> path for each lun. IO's to the "ghost" path will never complete and the
> SCSI layer, via the scsi device handler rdac code, quick returns the IOs
> to theses paths and sets the REQ_QUIET scsi flag to suppress the scsi
> layer messages. 
> 
>  I am wanting to extend the QUIET behavior to include the buffer file
> system layer to deal with these errors as well. I have been running this
> patch for a while now on several boxes without issue.  A few runs of
> bonnie++ show no noticeable difference in performance in my setup. 
> 
> Thanks for John Stultz for the quiet_error finalization. 

Looks good to me. I'll merge it up for 2.6.29.

-- 
Jens Axboe


  reply	other threads:[~2008-11-25  9:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24 21:26 [Patch][RFC] Supress Buffer I/O errors when SCSI REQ_QUIET flag set Keith Mannthey
2008-11-25  9:19 ` Jens Axboe [this message]
2008-12-30 19:35   ` Andrew Morton
2008-12-30 19:41     ` Andrew Morton
2008-12-30 20:08       ` Pekka Enberg
2008-12-31 23:04         ` Defrag support for inodes / dentries etc Christoph Lameter
2009-01-02  0:00           ` Dave Chinner
2009-01-01  1:10     ` [Patch][RFC] Supress Buffer I/O errors when SCSI REQ_QUIET flag set Keith Mannthey

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=20081125091917.GU26308@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=kmannth@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sekharan@us.ibm.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