From: Luben Tuikov <ltuikov@yahoo.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] SCSI/SD: clearer output of disk cache state
Date: Wed, 15 Nov 2006 12:47:08 -0800 (PST) [thread overview]
Message-ID: <643370.18693.qm@web31814.mail.mud.yahoo.com> (raw)
In-Reply-To: <1163622402.3524.14.camel@mulgrave.il.steeleye.com>
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
--- James Bottomley <James.Bottomley@SteelEye.com> wrote:
> On Sat, 2006-11-04 at 16:45 -0800, Luben Tuikov wrote:
> > Re-based:
> >
> > Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
>
> It still won't apply ... this time it looks like a mailer tab->space
> conversion problem.
Attached.
Luben
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
[-- Attachment #2: 2974651858-sd.txt --]
[-- Type: text/plain, Size: 1007 bytes --]
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 84ff203..ffbd021 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -1467,7 +1467,6 @@ sd_read_cache_type(struct scsi_disk *sdk
res = sd_do_mode_sense(sdp, dbd, modepage, buffer, len, &data, &sshdr);
if (scsi_status_is_good(res)) {
- int ct = 0;
int offset = data.header_length + data.block_descriptor_length;
if (offset >= SD_BUF_SIZE - 2) {
@@ -1496,11 +1495,13 @@ sd_read_cache_type(struct scsi_disk *sdk
sdkp->DPOFUA = 0;
}
- ct = sdkp->RCD + 2*sdkp->WCE;
-
- printk(KERN_NOTICE "SCSI device %s: drive cache: %s%s\n",
- diskname, sd_cache_types[ct],
- sdkp->DPOFUA ? " w/ FUA" : "");
+ printk(KERN_NOTICE "SCSI device %s: "
+ "write cache: %s, read cache: %s, %s\n",
+ diskname,
+ sdkp->WCE ? "enabled" : "disabled",
+ sdkp->RCD ? "disabled" : "enabled",
+ sdkp->DPOFUA ? "supports DPO and FUA"
+ : "doesn't support DPO or FUA");
return;
}
prev parent reply other threads:[~2006-11-15 20:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-04 19:54 [PATCH] SCSI/SD: clearer output of disk cache state Luben Tuikov
2006-11-04 20:13 ` Christoph Hellwig
2006-11-04 23:12 ` James Bottomley
2006-11-05 0:45 ` Luben Tuikov
2006-11-05 3:57 ` Jeff Garzik
2006-11-05 5:36 ` James Bottomley
2006-11-05 14:47 ` Douglas Gilbert
2006-11-15 20:26 ` James Bottomley
2006-11-15 20:47 ` Luben Tuikov [this message]
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=643370.18693.qm@web31814.mail.mud.yahoo.com \
--to=ltuikov@yahoo.com \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-scsi@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.