Commit 199cefec authored by Heiko Carstens's avatar Heiko Carstens Committed by Christoph Hellwig

[PATCH] set data direction in sd_synchronize_cache in sd.c

Hi,

the following patch sets the data direction in sd_synchronize_cache
to SCSI_DATA_NONE. Otherwise the data direction would be
SCSI_DATA_UNKNOWN, which is at least a problem for the zfcp
lldd, since it expects a value differently from unknown.
Please apply, thanks.

Heiko
parent 0366c186
......@@ -1505,7 +1505,8 @@ static int sd_synchronize_cache(struct scsi_disk *sdkp, int verbose)
printk("FAILED\n No memory for request\n");
return 0;
}
SRpnt->sr_data_direction = SCSI_DATA_NONE;
for(retries = 3; retries > 0; --retries) {
unsigned char cmd[10] = { 0 };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment