ide: set REQ_NOMERGE request flag in ide_do_drive_cmd()
PATCH 2/3 ide: set REQ_NOMERGE request flag in ide_do_drive_cmd()
This is a preparation for converting IDE to use blk_execute_rq().
There should be no functional changes caused by this patch.
--- drivers/ide/ide-io.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/ide/ide-io.c +2 -0
@@ -1603,6 +1603,8 @@ int ide_do_drive_cmd (ide_drive_t *driveif (action == ide_preempt || action == ide_head_wait) where =ELEVATOR_INSERT_FRONT ; + rq->cmd_flags |=REQ_NOMERGE ; +spin_lock_irqsave (&ide_lock, flags);if (action == ide_preempt) hwgroup->rq =NULL ;
Quoted 11 lines · On Sat, 3 May 2008 15:14:24 +0200 Bartlomiej Zolnierkiewicz…
This is a preparation for converting IDE to use
blk_execute_rq().There should be no functional changes caused by this patch.
Cc FUJITA Tomonori <[email protected]>Cc Borislav Petkov <[email protected]>Cc Jens Axboe <[email protected]>Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>--- drivers/ide/ide-io.c | 2 ++ 1 file changed, 2 insertions(+)
I think that you can drop this since the block layer doesn't check REQ_NOMERGE with the way ide_do_drive_cmd queues requests.
Quoted 15 lines · FUJITA Tomonori
Quoted 11 lines · On Sat, 3 May 2008 15:14:24 +0200 Bartlomiej Zolnierkiewicz…
This is a preparation for converting IDE to use
blk_execute_rq().There should be no functional changes caused by this patch.
Cc FUJITA Tomonori <[email protected]>Cc Borislav Petkov <[email protected]>Cc Jens Axboe <[email protected]>Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>--- drivers/ide/ide-io.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 2 lines
I think that you can drop this since the block layer doesn't check
REQ_NOMERGEwith the wayide_do_drive_cmdqueues requests.
Yeah, I see now that REQ_NOMERGE only matters for fs requests.
Dropped.