From owner-freebsd-scsi@FreeBSD.ORG Tue Oct 31 03:17:23 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AA9A16A4D0 for ; Tue, 31 Oct 2006 03:17:23 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C27B243DCD for ; Tue, 31 Oct 2006 03:16:59 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id k9V3GxgN019107 for ; Mon, 30 Oct 2006 19:16:59 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id k9V3Gxl4019104 for ; Mon, 30 Oct 2006 19:16:59 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Mon, 30 Oct 2006 19:16:59 -0800 (PST) From: mjacob@freebsd.org X-X-Sender: mjacob@ns1.feral.com To: freebsd-scsi@freebsd.org Message-ID: <20061030191525.A19102@ns1.feral.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1332646562-1162264619=:19102" Subject: patch to add a tunable that disables ORDERED tag emission X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2006 03:17:23 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1332646562-1162264619=:19102 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed I could have sworn we talked about this some time back - ordered tag usage really kills performance in a lot of cases, so let's have a tunable where we can disable the emission of ORDERED tags at regular intervals. --0-1332646562-1162264619=:19102 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=da_patch.txt Content-Transfer-Encoding: BASE64 Content-ID: <20061030191659.O19102@ns1.feral.com> Content-Description: Content-Disposition: attachment; filename=da_patch.txt PT09PSAvL2RlcG90L3Byb2plY3RzL25ld2lzcC9jYW0vc2NzaS9zY3NpX2Rh LmMjMyAtIC9ob21lL0ZyZWVCU0QvcDQvbmV3aXNwL2NhbS9zY3NpL3Njc2lf ZGEuYyA9PT09DQpAQCAtNDkxLDggKzQ5MSwxNCBAQA0KICNkZWZpbmUJREFf REVGQVVMVF9SRVRSWQk0DQogI2VuZGlmDQogDQorI2lmbmRlZglEQV9ERUZB VUxUX1NFTkRfT1JERVJFRA0KKyNkZWZpbmUJREFfREVGQVVMVF9TRU5EX09S REVSRUQJMQ0KKyNlbmRpZg0KKw0KKw0KIHN0YXRpYyBpbnQgZGFfcmV0cnlf Y291bnQgPSBEQV9ERUZBVUxUX1JFVFJZOw0KIHN0YXRpYyBpbnQgZGFfZGVm YXVsdF90aW1lb3V0ID0gREFfREVGQVVMVF9USU1FT1VUOw0KK3N0YXRpYyBp bnQgZGFfc2VuZF9vcmRlcmVkID0gREFfREVGQVVMVF9TRU5EX09SREVSRUQ7 DQogDQogU1lTQ1RMX05PREUoX2tlcm5fY2FtLCBPSURfQVVUTywgZGEsIENU TEZMQUdfUkQsIDAsDQogICAgICAgICAgICAgIkNBTSBEaXJlY3QgQWNjZXNz IERpc2sgZHJpdmVyIik7DQpAQCAtNTAyLDYgKzUwOCw5IEBADQogU1lTQ1RM X0lOVChfa2Vybl9jYW1fZGEsIE9JRF9BVVRPLCBkZWZhdWx0X3RpbWVvdXQs IENUTEZMQUdfUlcsDQogICAgICAgICAgICAmZGFfZGVmYXVsdF90aW1lb3V0 LCAwLCAiTm9ybWFsIEkvTyB0aW1lb3V0IChpbiBzZWNvbmRzKSIpO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