[BLOCK] add @uptodate to end_that_request_last() and @error to rq_end_io_fn()
[linux-2.6.git] / drivers / scsi / sd.c
index 3d3ad7d..d651150 100644 (file)
@@ -748,7 +748,7 @@ static void sd_end_flush(request_queue_t *q, struct request *flush_rq)
                 * force journal abort of barriers
                 */
                end_that_request_first(rq, -EOPNOTSUPP, rq->hard_nr_sectors);
-               end_that_request_last(rq);
+               end_that_request_last(rq, -EOPNOTSUPP);
        }
 }