qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let all lock_user_struct(


From: Chen Gang S
Subject: Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Let all lock_user_struct() and unlock_user_struct() paired with each other
Date: Mon, 26 Jan 2015 05:59:09 +0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 1/25/15 20:49, Peter Maydell wrote:
> On 25 January 2015 at 12:06, Chen Gang S <address@hidden> wrote:
>> lock_user_struct() and unlock_user_struct() need always be paired with
>> each other, or will cause resource leak.
>>
>> Also remove redundant check for 'target_mb' in abi_long do_msgrcv().
>>
>> Also match the coding styles found by "./scripts/checkpatch.pl".
>>
>> Signed-off-by: Chen Gang <address@hidden>
> 
> Reviewed-by: Peter Maydell <address@hidden>
>
 
Thank you for your work about the several patches.


> Are you claiming that you've reviewed *all* the code in this
> file for mismatched lock/unlock calls? If so, it would be nice
> to say so explicitly in the commit message. If not, it would be
> nice if the commit message was clearer about what areas of the
> code it applied to. The code changes are correct, though.
> 

At present, I finished all lock_user_struct() and unlock_user_struct()
in "linux-user/syscall.c". For me, after this patch, they are all OK.

But for all lock/unlock in "linux-user/syscall.c", for me, I am doubting
several areas, but I did not send patch for them:

 - I need check them carefully again to be sure they are really issue:

   Read the related code again and again, if I really treat it as an
   issue, I shall make related patch (and pass compiling, at least).

 - I have no enough time resources on it:

   In week end, I have to spend some time resource on my son (check his
   homework, play with him). I also need spend time resources on Linux
   kernel and gcc/binutils.

   In week day, I may work overtime sometimes, also I need spend 4 hours
   on subway between my home and office per day (come and go).

 - So it is really necessary for me to make a schedule (the tasks/steps,
   the time point, and the risks), and also need consider about:

   How to use the time resources efficiently: e.g. fully use the time
   resources on the subway between home and office, in work day; fully
   use the time resources on holidays (e.g. Chinese Spring Festival).

   How to fully use the human resources: e.g. try my best to always keep
   well communication with all related open source members (which will
   give much valuable help for the related tasks).

Welcome any members' ideas, suggestions, and completions, also welcome
any members to help check "linux-user/syscall.c" (it will save my time
resource: now for qemu, my highest priority task is for tile qemu).

Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]