From nobody Wed Feb 2 07:49:31 2022 X-Original-To: freebsd-fs@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 65CD819A9529; Wed, 2 Feb 2022 07:49:39 +0000 (UTC) (envelope-from peterj@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JpYq72GhBz4WWL; Wed, 2 Feb 2022 07:49:39 +0000 (UTC) (envelope-from peterj@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643788179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QZnyyGRzN5dHJjx/Z0tJPGLgol3M3TzZsfwKMDk/jdc=; b=A+wybSqoOvGQJ9Bn4TTj3PbODWbKJkVlWhBJHRZ1eN+PK2EEgzxR3LlrN2i0sMMWYI6FbG O8SP4CKBv/OdTPPKLJzKSDdVGHjB2xhFEcZ/YlZt+hn5CK4jYJSysAbI6CTrphyyxvBlhI dVxtQ2GNnQhUieWjwFxXpsQZvEcoerQDFm3RUzDqhuf7/iaXg9fkmXjlW3ykyNs+CpJ82W p49GNY8RvaI1UwYcek/VJ5oqFF7dvHmKnIT40d2xbfGMumjn2AkZ26GGojsQMgofcz8osJ i+W+kdiOjvFpGqtBLsoUTY8ef3xZRyycUl/oa091Fk9lGp8c4pEijsMR2W4rFQ== Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: peterj) by smtp.freebsd.org (Postfix) with ESMTPSA id CD5496895; Wed, 2 Feb 2022 07:49:37 +0000 (UTC) (envelope-from peterj@freebsd.org) Date: Wed, 2 Feb 2022 18:49:31 +1100 From: Peter Jeremy To: Warner Losh Cc: Konstantin Belousov , FreeBSD FS , "freebsd-geom@FreeBSD.org" Subject: Re: bio re-ordering Message-ID: References: List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KgkkJ0JjAtxbHxnB" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643788179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QZnyyGRzN5dHJjx/Z0tJPGLgol3M3TzZsfwKMDk/jdc=; b=eZTH26lkDJ3Eyq1NxhlNM9rMQDQoBbGzkqhduy+QcrXrJvkbxDdOw9+myKHzDoQ9oges2t 8mGl5QP95rg3Jg3snVHhoiVuzHff+f1uB+VbB15UNzrjcNetC3kZP2TFFL15q5HalB121S 3gckREYlBq2PtCPEifDtZ2zMvLzZS6HHD9xozZUx1ltV9svDxfXgb9CahjgQmBetOxhtCU ck0RIF2itJGascZ/i0idd2ZCJqFkpPQClohrnUl7ZgL0rhbYqIFjBP4pmjoeCqaukej1xA m5GzSJzDQkS27DDG3tzCp+3M+dv/h8oM79AZn8OG0lDCts4eUO4MpuWBtPXDBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643788179; a=rsa-sha256; cv=none; b=oMpcQEajWIKAfH/Kh97iICFl3lSaU6AbiiFsJlUCMiWz0NYYtbHflPhSqAqeuskD999oPU 2B8Qem6RVCbJoMXWDf7WeowJfkNdT1JAVEoAKRY4BNIT3gRugTRIryOuQGCYbMNCzcAV+7 2Qc+3ORAI9k8Um3azF8E2rVYjacmMC+PnyBYYSFHQlgme3Cq3o7A5P8nRN7FD7S79babV0 rn6ukv9D28pBsRwMp65CPP5Kga1jOebYEOY7/54zIPy43Ech32xpZrV5s0dJQ/FUQQpKHa 1YgChKxxACDPlyXc/XRWjswXynuyB/5/7c6CDpP5CMJ3PazPTp63J7jYiXkYaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --KgkkJ0JjAtxbHxnB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks all for the very prompt responses. On 2022-Jan-28 22:32:02 -0700, Warner Losh wrote: >I think that ufs relies on two ordering primitives, both marked with >BIO_ORDERED today. >That's what most of the drivers key off of. We always set BIO_ORDERED on >all the BIO_FLUSH >events as far as I Can tell. Thanks for that warning. I don't think geom_gate understands either B_BARRIER or BIO_ORDERED. I shall have a closer look. >to it. b*barrierwrite() sets this, and that's used in the ffs_alloc code. In my case, I'm interested in ZFS, rather than UFS and it doesn't seem to set B_BARRIER or BIO_ORDERED or indirectly. --=20 Peter Jeremy --KgkkJ0JjAtxbHxnB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmH6N4ZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzS/uw/+ONGwBq5/3KjIJZ+6rzyBja7Yb9EdfOdhrM9C6w4H84CpjWNZK56Aph6D SOMx3x299iAUG6vAehdl5pK91nkM/XBSpdb8JehMmIy1JU+3ydDwLcbaxOxW5Zwm lhqDZLTr6Q+Nsz6PmLMknswiG2tSfuqD3AB402OCHhZzMZaMcQJJ2Yc/vvVFMdMq CkTbWiYwQf33hqcofYHFswsT98p/KF5pG9phO6gHhFowNs8hZ+xwpk4wy24pwJVf 5Se+P6gFF+UzvqZYLtHmDpxnx4AsswZt3RSKhxdneM4n+dcbZl2+wOrlixB0Eq1m vsMIyJfS7a82cynkuwSLMYjxxxqvzRYHpOfc7KE7oGhCGJdYM/evEkrEi4iZBcvg QDRPjPoqeAtfrMdcAO4ev6wEPJwdtZc/fwGu9tfulWsp1Qf6ULMRnHElzitZNdcv vppOMoS9/PPv1EzhTvLD3BID6JTrWotevVeYpN8Tdr4we5HaUdqjjIyXp/dwpCfh XWq2brxr1slTKNHWfFGyg0ZUYsjazQTuC8x9VYFonW4tUPJvDwOG+R7uYuq2F39P Z02RRbhdP6SJsoCF5IkD1Kw1No+4YwVWoedFShaho0K33Ptknm/MBydRlcmzLVB8 KGLdRHKLIQq60C6L7AaQt1A4sPDYgpdPOS4VXvYpfIUcIJcXeDE= =vHiW -----END PGP SIGNATURE----- --KgkkJ0JjAtxbHxnB--