Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42425
b: refs/heads/master
c: fd44bab
h: refs/heads/master
i:
  42423: 202e98c
v: v3
  • Loading branch information
Luben Tuikov authored and James Bottomley committed Nov 15, 2006
1 parent 2a98680 commit 95d7886
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f777ed26086452737ea52597cf8de26137090d5
refs/heads/master: fd44bab5c709bbcd30fbebe9ad45a76c58cd32a7
13 changes: 7 additions & 6 deletions trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,6 @@ sd_read_cache_type(struct scsi_disk *sdkp, char *diskname,
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) {
Expand Down Expand Up @@ -1496,11 +1495,13 @@ sd_read_cache_type(struct scsi_disk *sdkp, char *diskname,
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;
}
Expand Down

0 comments on commit 95d7886

Please sign in to comment.