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
...@@ -1506,6 +1506,7 @@ static int sd_synchronize_cache(struct scsi_disk *sdkp, int verbose) ...@@ -1506,6 +1506,7 @@ static int sd_synchronize_cache(struct scsi_disk *sdkp, int verbose)
return 0; return 0;
} }
SRpnt->sr_data_direction = SCSI_DATA_NONE;
for(retries = 3; retries > 0; --retries) { for(retries = 3; retries > 0; --retries) {
unsigned char cmd[10] = { 0 }; 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