> From: Jens Axboe <axboe@xxxxxxxxx> > Sent: Wednesday, March 23, 2022 14:19 > To: Constantine Gavrilov <CONSTG@xxxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx <linux-kernel@xxxxxxxxxxxxxxx> > Cc: io-uring <io-uring@xxxxxxxxxxxxxxx> > Subject: [EXTERNAL] Re: io_uring_enter() with opcode IORING_OP_RECV ignores MSG_WAITALL in msg_flags > > On 3/23/22 4:31 AM, Constantine Gavrilov wrote: > > I get partial receives on TCP socket, even though I specify > > MSG_WAITALL with IORING_OP_RECV opcode. Looking at tcpdump in > > wireshark, I see entire reassambled packet (+4k), so it is not a > > disconnect. The MTU is smaller than 4k. > > > > From the mailing list history, looks like this was discussed before > > and it seems the fix was supposed to be in. Can someone clarify the > > expected behavior? > > > > I do not think rsvmsg() has this issue. > > Do you have a test case? I added the io-uring list, that's the > appropriate forum for this kind of discussion. > > -- > Jens Axboe Yes, I have a real test case. I cannot share it vebratim, but with a little effort I believe I can come with a simple code of client/server. It seems the issue shall be directly seen from the implementation, but if it is not so, I will provide a sample code. Forgot to mention that the issue is seen of Fedora kernel version 5.16.12-200.fc35.x86_64. -- It seems the issue shall be directly seen from the implementation, but if it is not so, I will provide a sample code. Forgot to mention that the issue is seen of Fedora kernel version 5.16.12-200.fc35.x86_64. -- ---------------------------------------- Constantine Gavrilov Storage Architect Master Inventor Tel-Aviv IBM Storage Lab 1 Azrieli Center, Tel-Aviv ----------------------------------------