From nobody Wed Feb 15 18:57:45 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 4PH6lZ0f8xz3rBdS; Wed, 15 Feb 2023 18:57:46 +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 4PH6lZ0CtMz4B43; Wed, 15 Feb 2023 18:57:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676487466; 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=CmqW5SEbTScAZusDpbVDDs/4/GSLr8zbqmXPxAU3j8g=; b=QWHFnYmFt6uSnDxFzcSOxavnjiMapvehwMx6dxzeXbf3sbWbgYw2lJuhTw2GI+M6SB0Mki puu1KWYyVgkuBNrc7ACofbF06YAgZmpkSsJ2AYU4Q8+FIn7THZocJzycbAiDkqVVndPBQt hUd6p7+7KJ+iqGCNtWRpg4TQ5gHLxGdYImcOevoHLyaelAnGotDm5mHAQDbpnWijhbsNm3 E2cZaWinoojRCGjCmpSpStSS88yVQWeBs6nFr1J1N2nL4rGQNFQmLWAUpicenoX6EpVhos OMSmIa3M/R6Ynbq40zs0/D/NY7USXWfwK7ZgqEDQXOQi3h4aTokA/eQVPfPiIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676487466; 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=CmqW5SEbTScAZusDpbVDDs/4/GSLr8zbqmXPxAU3j8g=; b=tvZZunj5RFZ7+/DkZZynVy8d48wSrNURwosIx3KKNuBWTH15HTai+/tvX/ff0UoBZYs+f5 eIM7conqmGgL0Kkhidsuj+uGsuSWMW9AqYC3EH689fxjvf+BPCJlX73Vmex1k0Y5aizwGA o36Ke75X3xMvGLggHB0rKvKbzSogaao8RRUicd/DgzVSNG/E2w9p6/4zQXGUgvHAMe6UNu ZH69hqhO54VvLlKAmFu31430NfR7cIpV8HWNyfr+CvzotPdB5zFh77z+Pik/9ELt/doPhu af0c0p34mP0i26Ba2bxuEX05MVdDMA38IDEBOt4jYeY8thQ8SPLpJ2XTJsjA8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676487466; a=rsa-sha256; cv=none; b=UdMEhBLxUq8Nq3PAgqHG014EnDkL1up90mJFEJDJhwAr4HTUGeOBuxjtthZ8icr69ot3Mp 2XybFPFKWnSNleFMvzv7HF/jMQ8+voBRubWVOrR4/wGz17MKjA8pbaHSW0l+etvSIfLMfC VhfR7rEMjQ8KBAsj+UvLobwC7QUESYX1HNPV+8VDR28Sd1f7p53LRnv/WhX4mBOkGZHdOh +IoU0+omkH6BUa9Ft47YsdaaDQ1Jdvfm29jjoTMwpncdwF1N1mc63cgBlujVHxUOiLdItg gghgsDlsJKB5iy5QS1pv0UoSMAF6Kb6s/urAgJM5zmKwpfoLAA8TsxZgbD85pQ== 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 4PH6lY68M4zZr7; Wed, 15 Feb 2023 18:57:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31FIvjsD088741; Wed, 15 Feb 2023 18:57:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31FIvjsM088740; Wed, 15 Feb 2023 18:57:45 GMT (envelope-from git) Date: Wed, 15 Feb 2023 18:57:45 GMT Message-Id: <202302151857.31FIvjsM088740@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: cca6d6160f14 - main - 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/main X-Git-Reftype: branch X-Git-Commit: cca6d6160f14a6a8dcb1e3caa0759ddbd0f68555 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cca6d6160f14a6a8dcb1e3caa0759ddbd0f68555 commit cca6d6160f14a6a8dcb1e3caa0759ddbd0f68555 Author: John Baldwin AuthorDate: 2023-02-15 18:57:08 +0000 Commit: John Baldwin CommitDate: 2023-02-15 18:57:08 +0000 aio_biowakeup: Various style fixes. --- 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 34671f67191f..9868b8770747 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -2480,9 +2480,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. @@ -2494,7 +2495,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);