Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

2021-03-04 Thread Manfred Spraul
Hi Eric, On 3/4/21 2:12 AM, Andrew Morton wrote: On Tue, 23 Feb 2021 23:11:43 +0800 Eric Gao wrote: sometimes, we need the msgsnd or msgrcv syscall can return after a limited time, so that the business thread do not be blocked here all the time. In this case, I add the msgsnd_timed and msgrc

Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

2021-03-03 Thread Andrew Morton
On Tue, 23 Feb 2021 23:11:43 +0800 Eric Gao wrote: > sometimes, we need the msgsnd or msgrcv syscall can return after a limited > time, so that the business thread do not be blocked here all the time. In > this case, I add the msgsnd_timed and msgrcv_timed syscall that with time > parameter, whic

Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

2021-02-28 Thread Arnd Bergmann
On Sun, Feb 28, 2021 at 5:16 PM Eric Gao wrote: > > > Is there something that mq_timedsend/mq_timedreceive cannot do that > > you need? Would it be possible to add that feature to the posix message > > queues instead? > > the system v message queue have a mtype parameter both in msgsnd and msgrcv

Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

2021-02-28 Thread Arnd Bergmann
On Sun, Feb 28, 2021 at 4:16 PM Eric Gao wrote: > > Hi Arnd: > > Thanks for your kindly reply. > > I want to prove you and all of others that these syscalls are > very useful and necessary. Actually, I add these syscalls > > when I try to implement the local rpc by sy

Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

2021-02-27 Thread Arnd Bergmann
On Sat, Feb 27, 2021 at 7:52 AM Eric Gao wrote: > > sometimes, we need the msgsnd or msgrcv syscall can return after a limited > time, so that the business thread do not be blocked here all the time. In > this case, I add the msgsnd_timed and msgrcv_timed syscall that with time > parameter, which