Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288943
b: refs/heads/master
c: 6b2f949
h: refs/heads/master
i:
  288941: 4d2e3fb
  288939: 50f4eab
  288935: 85d7749
  288927: f050483
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent 1f66254 commit 7041469
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 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: 85904a5e553f343243e5cf59f150174159e2e5ea
refs/heads/master: 6b2f949559b26448cc6d161d62341281db42c909
19 changes: 7 additions & 12 deletions trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,9 @@ enum vstor_packet_operation {
* this remains the same across the write regardless of 32/64 bit
* note: it's patterned off the SCSI_PASS_THROUGH structure
*/
#define CDB16GENERIC_LENGTH 0x10

#ifndef SENSE_BUFFER_SIZE
#define SENSE_BUFFER_SIZE 0x12
#endif

#define MAX_DATA_BUF_LEN_WITH_PADDING 0x14
#define STORVSC_MAX_CMD_LEN 0x10
#define STORVSC_SENSE_BUFFER_SIZE 0x12
#define STORVSC_MAX_BUF_LEN_WITH_PADDING 0x14

struct vmscsi_request {
u16 length;
Expand All @@ -140,9 +136,9 @@ struct vmscsi_request {
u32 data_transfer_length;

union {
u8 cdb[CDB16GENERIC_LENGTH];
u8 sense_data[SENSE_BUFFER_SIZE];
u8 reserved_array[MAX_DATA_BUF_LEN_WITH_PADDING];
u8 cdb[STORVSC_MAX_CMD_LEN];
u8 sense_data[STORVSC_SENSE_BUFFER_SIZE];
u8 reserved_array[STORVSC_MAX_BUF_LEN_WITH_PADDING];
};
} __attribute((packed));

Expand Down Expand Up @@ -234,7 +230,6 @@ struct vstor_packet {
#define STORVSC_MAX_LUNS_PER_TARGET 64
#define STORVSC_MAX_TARGETS 1
#define STORVSC_MAX_CHANNELS 1
#define STORVSC_MAX_CMD_LEN 16

/* Matches Windows-end */
enum storvsc_request_type {
Expand Down Expand Up @@ -1074,7 +1069,7 @@ static int storvsc_do_io(struct hv_device *device,
vstor_packet->vm_srb.length = sizeof(struct vmscsi_request);


vstor_packet->vm_srb.sense_info_length = SENSE_BUFFER_SIZE;
vstor_packet->vm_srb.sense_info_length = STORVSC_SENSE_BUFFER_SIZE;


vstor_packet->vm_srb.data_transfer_length =
Expand Down

0 comments on commit 7041469

Please sign in to comment.