From nobody Wed Sep 06 21:56:38 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 4Rgx6G53BVz4sJCh; Wed, 6 Sep 2023 21:56:38 +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 4Rgx6G4Hm0z3bC8; Wed, 6 Sep 2023 21:56:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694037398; 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=d8ThXeH+6cTPVwjx5CZnGzgDVy3qMCIxYGjyWVgTDCw=; b=mvh+YZq3u8cvHdO1wgFjh0tITe/RfGsvXEGi0Hzm1B4Ritja4fhj6sqDtn7WFfueb6AxE7 HDZgMYdZRGLwxokt4pHzDbyUA9oHZkD7AXcJ7IcZ7AGzCX0siEcG0entnE1b8vv8CGcZQL KkxrnXnoHtNNnJkILoSzF+HN/zC9irBM0a6M5gMpydWXPNQLN/owvYK/SWg0m5YyR8YThq Kd5rmB3g3UNwCY5mT2wptumbKJwngBXgdQ8i3MxZr4qGCqNpfK2xND3DJP2XC00Q/j07PI LWSMLSkxltkHoy1rmMHPEM8Ph8x1crvJtIZnjMb5CLeszZAO/vLjPhQGoC7Kaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694037398; a=rsa-sha256; cv=none; b=M3vwlH/QPA1QvIoIyc7E2R6ITWQMPLF4Eob9XDuukHgwy27mnY2BqSDLaZFw6gEoQC3FII h8xdv+ItSjby+1tOLKyc0N1xr0+xtIfN+kPkR06JPp7D79HzDd066ZM8kk7YMaszKPLw0G /D9xdfQ4BOsoDr2OVMMv1sBDRMJj8qS1rtlRZgXwKbXCBVi4Dc4zuxb+SsTZysXlm7yvI4 +odxGTf5b+W4wJC+nvvR/WP1eQMtIiiP5OLpTGM9deijeIbgueC2Sq1pjns9IMyBbPmjWT 97upjjTbcznzu4M0xXSFErcS6dstML6Z7Li7NpbHzrOTNtEZzrTMVbEapLGAyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694037398; 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=d8ThXeH+6cTPVwjx5CZnGzgDVy3qMCIxYGjyWVgTDCw=; b=k81fcx9OTQprqphkro8ZfQTYjhIzhr9OdAUSgYwxXGFQf12TAGXb19ATvV646rXFGb6zV9 YLsZ0CiezDQqENspHYz3QuEAWKMOavsEJ47sskcSffEccRw2DzRpS1SRWpKtZqNtbqQdYu Mj0qwXk7bpOvm71njqT9GPNFxTXoC/GxkfPv/XdJEVpI+6X2/GvigpofdeR7MAzm72JNTk UXlIGlX+vVTiwRPNWZ57Pp/YZO97BJ3toyxiQxJ0daD0bOsV7B4HqT4oAVFoNtm+pcj0oa 8JhUOGVMouctqheg84cjnXBl/j3tlZA7yT8S4E5igNfoiNnSM0VDTtdbYLyAdA== 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 4Rgx6G3NpRzYvX; Wed, 6 Sep 2023 21:56:38 +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 386LucCJ022667; Wed, 6 Sep 2023 21:56:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 386LucqA022664; Wed, 6 Sep 2023 21:56:38 GMT (envelope-from git) Date: Wed, 6 Sep 2023 21:56:38 GMT Message-Id: <202309062156.386LucqA022664@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 3070a1850683 - stable/13 - aio_biowakeup: Various style fixes. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3070a18506838c7a038446fd0489acd7dd23dcec Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3070a18506838c7a038446fd0489acd7dd23dcec commit 3070a18506838c7a038446fd0489acd7dd23dcec Author: John Baldwin AuthorDate: 2023-02-15 18:57:08 +0000 Commit: John Baldwin CommitDate: 2023-09-06 21:56:09 +0000 aio_biowakeup: Various style fixes. (cherry picked from commit cca6d6160f14a6a8dcb1e3caa0759ddbd0f68555) --- sys/kern/vfs_aio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 7ca0848c5f46..0fbe094d8f44 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -2478,9 +2478,10 @@ aio_biowakeup(struct bio *bp) aio_biocleanup(bp); - nbytes =bcount - resid; + nbytes = bcount - resid; atomic_add_acq_long(&job->nbytes, nbytes); nblks = btodb(nbytes); + /* * If multiple bios experienced an error, the job will reflect the * error of whichever failed bio completed last. @@ -2492,7 +2493,6 @@ aio_biowakeup(struct bio *bp) else atomic_add_int(&job->inblock, nblks); - if (atomic_fetchadd_int(&job->nbio, -1) == 1) { if (atomic_load_int(&job->error)) aio_complete(job, -1, job->error);