ide: pass command to ide_map_sg()
[deliverable/linux.git] / drivers / ide / ide-floppy.c
index 8c518c6a64772166fdd43b73330f7dc7ffeba003..ee3e77a7a727a876ecba83259e6e61680cb71d60 100644 (file)
@@ -285,9 +285,13 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive,
                goto out_end;
        }
 
+       if (rq_data_dir(rq))
+               cmd->tf_flags |= IDE_TFLAG_WRITE;
+       cmd->rq = rq;
+
        if (blk_fs_request(rq) || pc->req_xfer) {
                ide_init_sg_cmd(cmd, rq->nr_sectors);
-               ide_map_sg(drive, rq);
+               ide_map_sg(drive, cmd);
        }
 
        pc->sg = hwif->sg_table;
This page took 0.023912 seconds and 5 git commands to generate.