Skip to contentSkip to conversation

scsi-generic: do not disable FUA

PATCH Applied Paolo Bonzini 3 participants 3 messages Sep 14, 2011 – Sep 15, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi-generic: do not disable FUA

I found no rationale for this in the logs, and it is quite bad because it will make scsi-generic unsafe WRT power failures.

---
 hw/scsi-generic.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
hw/scsi-generic.c +0 -6
index 3202e5a..33a230f 100644
@@ -244,12 +244,6 @@ static uint8_t *scsi_get_buf(SCSIRequest *req)
 static void scsi_req_fixup(SCSIRequest *req)
 {
     switch(req->cmd.buf[0]) {
-    case WRITE_10:
-        req->cmd.buf[1] &= ~0x08;	/* disable FUA */
-        break;
-    case READ_10:
-        req->cmd.buf[1] &= ~0x08;	/* disable FUA */
-        break;
     case REWIND:
     case START_STOP:
         if (req->dev->type == TYPE_TAPE) {
Signature · 1 line
1.7.6
Applied
#2 lore raw

Am 14.09.2011 16:40, schrieb Christoph Hellwig:

Quoted 7 lines · Paolo Bonzini
Quoted 2 lines

I found no rationale for this in the logs, and it is quite bad because it will make scsi-generic unsafe WRT power failures.

Looks good,

Thanks, applied to the block branch.

Kevin