From nobody Sun Aug 20 07:37:50 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RT6sC12p4z4qsMt; Sun, 20 Aug 2023 07:37:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RT6sB6L8Xz3DVh; Sun, 20 Aug 2023 07:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692517070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YgRswlKBTIOdmO4VT8UpEN9NLrZt+XsJ0jrT23hot4Q=; b=C1Pwcmji+YEJkg/G/q7D90fPW9ok4aZwoZWyLwi5RtrDx0s+kyeSWHcyXYiiksaxL04Ib9 /2Cy4EArm1Drj/TLRP8SB/KUAeAIs9QgWoORGFIbrwGAx7mYREXXolVIlafmANlimR7s29 kFNOhE2ALx2RtDMb3FRO1PSttsxDcQ6vlQ/EsFjuVVloZ+eCr/mhO1LU5mrmBhh5LfH/oF GlngoZY0SRdBkq66zfAlXEJ1SFjGHw861J8rRW8b9842Q6EXM90w4NPTPjSdH2b0JlK3rB W/0tARAwxD9u/3MTa+fkdUTbB2GIGS4cLiPMWXTkBwiNhubijKi2OZDgLCDDvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692517070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YgRswlKBTIOdmO4VT8UpEN9NLrZt+XsJ0jrT23hot4Q=; b=oaaYfbkpusj9L/rPh4+3v3wZ9sdD9nd5Ttj91Fo3hsAHW3uyvuWmSL5zrrq0HRrUV6UIHw Yp1hpZcXzX1a72JSBafbsv2tUk+cBKLXkb4eyxxWCiQYr/nSYOG/E07pjCn9UlFDe0ZxPz Hfb0dS67pkHNnlxZNQ0uqwlu+i3m2ObXe0kiHBuFu8AB7/HUQ49zsFFrjvuf3PTdLs/MDu n6/Vs7Ma4c8mCctBhzsOADsqg6az/pvMxN8yVwJc60Hg9Ra7Yj6D/BBkB2mdmsh6rkId87 lkFgzuAIHDuxEBWK94rOBfUUePRCIckDfqxeMRQtCWXRkMxbQq9QNyEUC+ABCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692517070; a=rsa-sha256; cv=none; b=K7tVeHnabnOzbfifQCnvCq32FRJlvzzSZBwC6zC0taZ2cRczZC1lZm1iquxRA5nzW+T0QM yD3IGg0GuAIJsNx0uQ8VJ9usO9XUgNdHlACJXWISxznTs7jC80RRozrC/eI6wlSwYZIM6l b9WDvM6vESOMRMNa4l/yYC6/DRDKRUGfeWQFIGU60dv8Vf6W4KlCJdioC+FjihUsR8BZFl kSI+BQt3Xb25vyRrdgCuPlE6xxqwzWlL3+cCfJxZQFxX7t85WWVTn5rpY42IVdPEIElxT5 NLmZvt4JeV5Zq5/F/CD1qvLjXndUTUbDdIDKioYkiMVHUgWsgHqgI4AmnoL/Rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RT6sB5RtqzWhl; Sun, 20 Aug 2023 07:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37K7bowv049865; Sun, 20 Aug 2023 07:37:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37K7bobL049862; Sun, 20 Aug 2023 07:37:50 GMT (envelope-from git) Date: Sun, 20 Aug 2023 07:37:50 GMT Message-Id: <202308200737.37K7bobL049862@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: d6cb9e728b37 - main - linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwrite List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d6cb9e728b3737d19da7a5554d1c6b740a29e69d Auto-Submitted: auto-generated The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=d6cb9e728b3737d19da7a5554d1c6b740a29e69d commit d6cb9e728b3737d19da7a5554d1c6b740a29e69d Author: Dmitry Chagin AuthorDate: 2023-08-20 07:36:31 +0000 Commit: Dmitry Chagin CommitDate: 2023-08-20 07:36:31 +0000 linux(4): Return EAGAIN instead of ENOBUFS for non-blocking sockets in pwrite MFC after: 1 month --- sys/compat/linux/linux_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 32aa64559414..c3b69e54d257 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1002,7 +1002,8 @@ linux_pwrite(struct thread *td, struct linux_pwrite_args *uap) offset = uap->offset; #endif - return (kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, offset)); + return (linux_enobufs2eagain(td, uap->fd, + kern_pwrite(td, uap->fd, uap->buf, uap->nbyte, offset))); } #define HALF_LONG_BITS ((sizeof(l_long) * NBBY / 2))