Re: [PATCH 1/5] io: Add support for MSG_PEEK for socket channel

2022-12-16 Thread Peter Xu
On Fri, Dec 16, 2022 at 04:10:22PM +0530, manish.mishra wrote: > Yes sorry, noticed it now, should i send another patch to update it. Also > in our internal testing we noticed multifd_init was skipped for 1 case, > so if this patch series is not yet submitted should i send another > version of it e

Re: [PATCH 1/5] io: Add support for MSG_PEEK for socket channel

2022-12-16 Thread manish.mishra
On 15/12/22 11:05 pm, Peter Xu wrote: On Thu, Dec 15, 2022 at 09:40:41AM +, Daniel P. Berrangé wrote: On Wed, Dec 14, 2022 at 04:30:48PM -0500, Peter Xu wrote: On Wed, Dec 14, 2022 at 09:14:09AM +, Daniel P. Berrangé wrote: On Tue, Dec 13, 2022 at 04:38:46PM -0500, Peter Xu wrote: F

Re: [PATCH 1/5] io: Add support for MSG_PEEK for socket channel

2022-12-15 Thread Peter Xu
On Thu, Dec 15, 2022 at 09:40:41AM +, Daniel P. Berrangé wrote: > On Wed, Dec 14, 2022 at 04:30:48PM -0500, Peter Xu wrote: > > On Wed, Dec 14, 2022 at 09:14:09AM +, Daniel P. Berrangé wrote: > > > On Tue, Dec 13, 2022 at 04:38:46PM -0500, Peter Xu wrote: > > > > From: "manish.mishra" > >

Re: [PATCH 1/5] io: Add support for MSG_PEEK for socket channel

2022-12-15 Thread Daniel P . Berrangé
On Wed, Dec 14, 2022 at 04:30:48PM -0500, Peter Xu wrote: > On Wed, Dec 14, 2022 at 09:14:09AM +, Daniel P. Berrangé wrote: > > On Tue, Dec 13, 2022 at 04:38:46PM -0500, Peter Xu wrote: > > > From: "manish.mishra" > > > > > > MSG_PEEK reads from the peek of channel, The data is treated as > >

Re: [PATCH 1/5] io: Add support for MSG_PEEK for socket channel

2022-12-14 Thread Peter Xu
On Wed, Dec 14, 2022 at 09:14:09AM +, Daniel P. Berrangé wrote: > On Tue, Dec 13, 2022 at 04:38:46PM -0500, Peter Xu wrote: > > From: "manish.mishra" > > > > MSG_PEEK reads from the peek of channel, The data is treated as > > unread and the next read shall still return this data. This > > sup

Re: [PATCH 1/5] io: Add support for MSG_PEEK for socket channel

2022-12-14 Thread Daniel P . Berrangé
On Tue, Dec 13, 2022 at 04:38:46PM -0500, Peter Xu wrote: > From: "manish.mishra" > > MSG_PEEK reads from the peek of channel, The data is treated as > unread and the next read shall still return this data. This > support is currently added only for socket class. Extra parameter > 'flags' is adde

[PATCH 1/5] io: Add support for MSG_PEEK for socket channel

2022-12-13 Thread Peter Xu
From: "manish.mishra" MSG_PEEK reads from the peek of channel, The data is treated as unread and the next read shall still return this data. This support is currently added only for socket class. Extra parameter 'flags' is added to io_readv calls to pass extra read flags like MSG_PEEK. Reviewed-