Re: [PATCH 2/2] Block: use round_jiffies_up()

From: Tejun Heo
Date: Tue Nov 04 2008 - 22:34:59 EST


Hello,

Alan Stern wrote:
> @@ -78,13 +78,14 @@ void blk_delete_timer(struct request *re
> /*
> * Nothing to detach
> */
> - if (!q->rq_timed_out_fn || !req->deadline)
> + if (!req->deadline)
> return;
>
> list_del_init(&req->timeout_list);
>
> if (list_empty(&q->timeout_list))
> del_timer(&q->timeout);
> + req->deadline = 0;
> }

Actually, this can just be

blk_delete_timer()
{
list_del_init(&req->timeout_list);
if (list_empty(&q->timeout_list))
del_timer(&q->timeout);
}

and none of req->deadline trick is necessary.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/