[PATCH 26/32] ide cd: do not set REQ_WRITE on requests.

From: mchristi
Date: Wed Nov 04 2015 - 17:14:54 EST

From: Mike Christie <mchristi@xxxxxxxxxx>

The block layer will set the correct READ/WRITE operation flags/fields
when creating a request, so there is not need for drivers to set the

Signed-off-by: Mike Christie <mchristi@xxxxxxxxxx>
drivers/ide/ide-cd_ioctl.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/ide/ide-cd_ioctl.c b/drivers/ide/ide-cd_ioctl.c
index 066e390..d2d0b38 100644
--- a/drivers/ide/ide-cd_ioctl.c
+++ b/drivers/ide/ide-cd_ioctl.c
@@ -459,9 +459,6 @@ int ide_cdrom_packet(struct cdrom_device_info *cdi,
layer. the packet must be complete, as we do not
touch it at all. */

- if (cgc->data_direction == CGC_DATA_WRITE)
- flags |= REQ_WRITE;
if (cgc->sense)
memset(cgc->sense, 0, sizeof(struct request_sense));


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/