block: use rq complete marking in blk_abort_request()
[linux-2.6.git] / block / blk-timeout.c
index 9b4ad13..972a63f 100644 (file)
@@ -158,6 +158,8 @@ void blk_rq_timed_out_timer(unsigned long data)
  */
 void blk_abort_request(struct request *req)
 {
+       if (blk_mark_rq_complete(req))
+               return;
        blk_delete_timer(req);
        blk_rq_timed_out(req);
 }