From nobody Mon May 13 22:38:30 2024 X-Original-To: dev-commits-src-main@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 4VdZCB6vm0z5L4jZ; Mon, 13 May 2024 22:38:30 +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 4VdZCB54vXz41Wy; Mon, 13 May 2024 22:38:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715639910; 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=BHnbTvlcfPyK/Ki/Tp6MB4UusNBuq1Brx8KD2zla4f4=; b=H7PFk4syQNunKeZT2iS9lQTOzAh9dPH3q8MWMDfA4mMekCw59EOIE972Q2/MMSXNKKsXz2 ztUyaJiEW51Ugmclw4XY5svbsF625Uy2nX/oq0Kbahx/9S1l7ooI8QmTgoSX4X9JbRh9BV UvIB9W1UOL8kCHMCvu9ah1uwz3HaVgP8eeREqsGhBFPuZ3lFrQ1LV2SCIBuIYk4TjHz0aX GcEJZ2+JF0Ccl1mU2rdy3TExK+2c7fATIjNXsTqahUb6mI0nOmXZ30gSZ22+rkLMTOjBV7 /iNc4Z/9z+1xk8RUWWDFmHvCvkiNN+QWgVsLTxiso5nkX41mOD/esRW/Kyhtrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715639910; a=rsa-sha256; cv=none; b=Zr6MvfK23rmkRuWkdf0lqSckNJkt280qsBtDKT/qIq37pSPXHN0mIMnm/ChCxRBEa9SSzJ eFNA1HkkPT7/2v4VYFVooF5cSryfZa/S5/zZXyHz+Fek7Ql+EzezSiTOOfk8/7hB9Ot4JT ln4/rrJrxOPO8Q2ue8//HMU8sVCJfr4xBwSOL7AcUnKUl4eTaMaHKt5eX0peT4ij568Rnb HkjMlwv56sGhbrm+meBam0J1yRxxLkgEltf0x1HrDVWHaqHfxdN/xFuhs5XN5g5kBMrdJt Xmti3ADPCupfr5Fx5H1x6ZIE3bLqN0uiaZO0PvtzXll+KEgIlzPsTGVCzMvmAg== 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=1715639910; 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=BHnbTvlcfPyK/Ki/Tp6MB4UusNBuq1Brx8KD2zla4f4=; b=qLBfpdVrT8mnuNmU0ObKWP5DcRSkpU5oOC5mdh7QmILP3IQ5b2cebPsRBlaXOGzh0BqRZN I5Biv2DL7C0KyXQBWlKHrsVyHBt9OgHtfm/fVEvpkL+hpdOZK/rW1Bv5ojNzVer9M4eZmS vT/W/y3fABVZqRGd/OwHAOhCgbjXVQCLc0KkLr4kHBzXDJHOD8srT6k+s85YMXolHPU8lf lcQlptBbtYKSLTpReuAp71iv0WMqPOwokJ4mecAt1gI9hfzvsjAhb7olhqeADW4mI0QdS6 oU3So03EiQYV3QMrYB7js2TI/PV2lRDKc89vlpALLxHXpL+1zmj5I2Wff7eC3A== 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 4VdZCB4h72z15hr; Mon, 13 May 2024 22:38:30 +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 44DMcUfr058285; Mon, 13 May 2024 22:38:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44DMcUtq058282; Mon, 13 May 2024 22:38:30 GMT (envelope-from git) Date: Mon, 13 May 2024 22:38:30 GMT Message-Id: <202405132238.44DMcUtq058282@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: c931cf6af08b - main - nvme: Slight simplification List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c931cf6af08b7d0abb29c90917dfe79a18235897 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c931cf6af08b7d0abb29c90917dfe79a18235897 commit c931cf6af08b7d0abb29c90917dfe79a18235897 Author: Warner Losh AuthorDate: 2024-05-13 21:03:52 +0000 Commit: Warner Losh CommitDate: 2024-05-13 22:14:04 +0000 nvme: Slight simplification We don't need to dereference qpair to get the ctrlr pointer each time, so use the cached value. It's not going to change. No change intended. Sponsored by: Netflix --- sys/dev/nvme/nvme_qpair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/nvme/nvme_qpair.c b/sys/dev/nvme/nvme_qpair.c index dd26906a933b..4c5d5f3c1ea7 100644 --- a/sys/dev/nvme/nvme_qpair.c +++ b/sys/dev/nvme/nvme_qpair.c @@ -1203,7 +1203,7 @@ nvme_qpair_submit_tracker(struct nvme_qpair *qpair, struct nvme_tracker *tr) bus_dmamap_sync(qpair->dma_tag, qpair->queuemem_map, BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE); - bus_space_write_4(qpair->ctrlr->bus_tag, qpair->ctrlr->bus_handle, + bus_space_write_4(ctrlr->bus_tag, ctrlr->bus_handle, qpair->sq_tdbl_off, qpair->sq_tail); qpair->num_cmds++; }