diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2010-04-10 03:07:37 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 19:04:02 (GMT) |
commit | 5738d4449c1baf05e8345684d12371f76296473d (patch) | |
tree | 00710629fd26aff9dc7c55c1aebc9d32c692e2a0 /drivers/scsi/device_handler/scsi_dh_emc.c | |
parent | ef7d17a907d89d590831a3995ed8638a9ad394bc (diff) | |
download | linux-5738d4449c1baf05e8345684d12371f76296473d.tar.xz |
[SCSI] scsi_dh_emc: request flag cleanup
blk_get_request sets the cmd_flags, so we should not and do not
need to set them. If we did set them to a different value then
it can cause a oops in the elevator code.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/device_handler/scsi_dh_emc.c')
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_emc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_emc.c b/drivers/scsi/device_handler/scsi_dh_emc.c index e8a0bc3..6faf472 100644 --- a/drivers/scsi/device_handler/scsi_dh_emc.c +++ b/drivers/scsi/device_handler/scsi_dh_emc.c @@ -285,13 +285,11 @@ static struct request *get_req(struct scsi_device *sdev, int cmd, switch (cmd) { case MODE_SELECT: len = sizeof(short_trespass); - rq->cmd_flags |= REQ_RW; rq->cmd[1] = 0x10; rq->cmd[4] = len; break; case MODE_SELECT_10: len = sizeof(long_trespass); - rq->cmd_flags |= REQ_RW; rq->cmd[1] = 0x10; rq->cmd[8] = len; break; |