[BLOCK] update IDE to use new blk_ordered for barriers
[linux-2.6.git] / drivers / ide / ide-io.c
index 8435b44a700bcf7748cd16aec619659e42143abe..b5dc6df8e67ddc8858527b95a875a2429392eee4 100644 (file)
@@ -119,10 +119,7 @@ int ide_end_request (ide_drive_t *drive, int uptodate, int nr_sectors)
        if (!nr_sectors)
                nr_sectors = rq->hard_cur_sectors;
 
-       if (blk_complete_barrier_rq_locked(drive->queue, rq, nr_sectors))
-               ret = rq->nr_sectors != 0;
-       else
-               ret = __ide_end_request(drive, rq, uptodate, nr_sectors);
+       ret = __ide_end_request(drive, rq, uptodate, nr_sectors);
 
        spin_unlock_irqrestore(&ide_lock, flags);
        return ret;