瀏覽代碼

[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>
Mike Christie 15 年之前
父節點
當前提交
5738d4449c
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/scsi/device_handler/scsi_dh_emc.c

+ 0 - 2
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) {
 	switch (cmd) {
 	case MODE_SELECT:
 	case MODE_SELECT:
 		len = sizeof(short_trespass);
 		len = sizeof(short_trespass);
-		rq->cmd_flags |= REQ_RW;
 		rq->cmd[1] = 0x10;
 		rq->cmd[1] = 0x10;
 		rq->cmd[4] = len;
 		rq->cmd[4] = len;
 		break;
 		break;
 	case MODE_SELECT_10:
 	case MODE_SELECT_10:
 		len = sizeof(long_trespass);
 		len = sizeof(long_trespass);
-		rq->cmd_flags |= REQ_RW;
 		rq->cmd[1] = 0x10;
 		rq->cmd[1] = 0x10;
 		rq->cmd[8] = len;
 		rq->cmd[8] = len;
 		break;
 		break;