RE: [PATCH] kernel: async: Fixed the wrong waitting condition of wait_event

From: Chunyan Zhang (张春艳)
Date: Thu Jan 08 2015 - 01:24:32 EST


Hi, Andrew

Could you give us the test log including the runtime problems you've got?

Thank you so much.


Best regards
Chunyan

On Mon, 5 Jan 2015 11:35:35 +0800 Chunyan Zhang <chunyan.zhang@xxxxxxxxxxxxxx> wrote:

> This patch changes the waitting condition of wait_event in the
> function 'async_synchronize_cookie_domain'.
>
> This function waits until all asynchronous function calls for the certain
> domain have been done.
>
> But, the function 'lowest_in_progress' returns the lowest *pending*
> entry's cookie.
>
> So we should make sure that the return value of lowest_in_progress(domain)
> must be larger than @cookie.

I'm having runtime problems with this. Twice the kernel silently hangs
late in initcalls and the third time I got a great stream of oopses.

I'll drop it. Hopefully you'll be able to work through the bug with
Arjan and Tejun.

N?叉??y??b??千v??藓{.n???{?赙zXФ?塄}?财??j:+v???赙zZ+€?zf"?????i????ア??璀??撷f?^j谦y??@A?囤?0鹅h??i