Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756875AbcJMWQI (ORCPT ); Thu, 13 Oct 2016 18:16:08 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:40220 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753872AbcJMWP7 (ORCPT ); Thu, 13 Oct 2016 18:15:59 -0400 X-IronPort-AV: E=Sophos;i="5.31,490,1473091200"; d="scan'";a="22021370" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Adam.Manzanares@wdc.com; Date: Thu, 13 Oct 2016 15:12:25 -0700 From: Adam Manzanares To: Sathya Prakash Veerichetty CC: Adam Manzanares , , , , , , , , , Chaitra Basappa , Suganath Prabu Subramani , , , , PDL-MPT-FUSIONLINUX , Subject: Re: [PATCH v4 2/4] fusion: remove iopriority handling Message-ID: <20161013221225.GB2745@hgst.com> References: <1476388433-2539-1-git-send-email-adam.manzanares@hgst.com> <1476388433-2539-3-git-send-email-adam.manzanares@hgst.com> <8338586db99fd444337d27f9abc3a777@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <8338586db99fd444337d27f9abc3a777@mail.gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [199.255.44.173] X-ClientProxiedBy: BN3PR11CA0006.namprd11.prod.outlook.com (10.162.169.16) To SN1PR0401MB1725.namprd04.prod.outlook.com (10.162.131.15) X-MS-Office365-Filtering-Correlation-Id: bd794dc4-f7ad-4271-ceac-08d3f3b60a95 X-Microsoft-Exchange-Diagnostics: 1;SN1PR0401MB1725;2:q4UPR5qfRgUJHSKXOGHv/QkCPiMtCPyweHSbmWKv5yulbc0hRgMJf228F1Jgpp3NQnfXRXy/+Nm4BqbYJORmHH18l+/hjxjpqqSNkcReadjTUP75ZUTNcPEL/aLVM8adScCbjmCYg0JahcUbVTpN5bIUIKAjAD7YAAMHiHChLep96I61RALAt81rPiYl4LfDpHesqr33Sbnf9MYUEGxkWw==;3:AovflL61cLjIXDFyGCfSI+vT5MqFCsx2hPoYnpNEzgUVJCplj+AashRX9vufOb7e7kaWF3a/Ug32cVCfqy209Hm4RGVhrPxFCpj7tBg7IkJMWtcQg22fEUzSa9FgsH2KlVPCMx9Y2kOlLIcPsffThA==;25:KZOxgfshwKeDCqTw2WnungoY3MYiRMJLymTuqpWy7jO9xGYdX5EhhaRPxSkdSpEpaGV2KdlhpORj551ULj0TFyMgI1AIugaewL9wYcNSYixnjaTRthK5aSbmYBcteyFRGH9ocD6TyFj9KpXNDUPbDxPYR/G5QU8ZdoxF68/5Jjow2cpXE9dVm3xpUAV1q4heLkyyTkXx5wVisddFqZGGdE3fyvgKQD1RhL3gV+RtnohnF6YQiJHcgTqaBMew/QQGfJYKP8WVNVkiI2QEeIwjwMr9gkEG2BcR+atUniZSrVDxM5bFArn5+W0FKugxC9T/L4kqNczpUjYw+pfbZlW/uIWsJ68GE89FRm5ondcEAeCzj4BYJJnttlw5jb5ldppHFtofOEiko97iHVE/D6+tUXEqDswLFVrc3s0sOvPc55+DwSsJOJAcYLiaNpP6nITW X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0401MB1725; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0401MB1725;31:mHzMUQ+YqBeAHKBUIb400O0vJNYaq6PI23CoefqIc8xmg2E4i0x5fPZBnHd0DssA1Xmz1i3Yz39JINgI3H959/LQYrbiYwZv6cH+mmNu+UITXQydjREmjgLhlHacWn2Cu9l6mLbLtd2hLmjOmeK6QP/5v2ueCawaM+83yc77uHgGOz6BW3QhjvTfphN12tkOzgf9wzdlFMlBSpKWB0G2iXAWwPWLZRtoiLnEBw8j3ZjUBryyAlKgUZKImv6+NUxxQu9BqUrguIyMsvF34SatPw==;20:tZqa7Nug+WFiSv+6xz4XJGU1emjGjBfST6tXCTMHeNXAXBBNx4fGiRNXPj3LugHmKfcasTTdQuBFXL8IPqZ4u33CeTfuzDGFmBd6NXbW63cKV4E+6jdAmnXZY8v2oQ2w7UdG7lCIptU1UvPq/dMMAmfG73wL5/yN2BwhjbFGAg6zln9eyZXRK2SUg6wssXXt8pRlZtNgGm83zLK/id2fwfxt9Yw3HJkbSa36UcjWhZMAJJt61wB738zAsQSf5SElTY1uoaOJXhdIttUHuy5McELu0fOJrAN/Jnu0eyf4wYCC8aeDflkb04FPZKExd5G9hhVcStqKHJAtpvzBvMWLgaU9okxDUL+kN0C5Cz+7U3cqFPiiyUFP9QmQRyYOxUOIhejoUAmuEsm6mDUwekbx7S8Kd+et9QTOi51wApKXzQpgqXoYCYRfrK/0uX+s6VLJipt1brnYQbJgsLw7xTCVqk9M0CVxB2B9Jbuo/DtqWXZm21/E8zBfXTU0uKOGrVQB X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(79135771888625)(227479698468861)(9452136761055)(146099531331640)(198206253151910)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026);SRVR:SN1PR0401MB1725;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0401MB1725; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0401MB1725;4:hqVDVngPvJy29rDxEEHtqNKIwnDk1fIuDhAb4Aaw+kpwuos2RsxJ6Ngj4jWik2Rw5h5qpyqnvJCnNcAL7kjytmg1mtqRm9EG5wgOugRJbdC88SYXoVFNvTIXMZB2KQ7XuuctIfLyANmUu6/TJybvBTULyJIj3NXquDcmuFjeVQ82dpjDqGw4bZCyfG/JnH97bS3pIrf78FHSAuRHEqZdHefuK9DL9MUxOYM2UdIP2lIOxHXbO56a1yOJPqVht6pT4S+mg4hP+suB7ZL+gBRRtybC4nlH3X5knXpV/vCThhgx5trmz/X8dz8h4hjak9jtV8HA6fXF+DnqPxh3ySEX1DvywBVReBasw++pcOXNwY/34gSK/93sCSqBDrHiDWMWt9HxfjIL8VNYjUklrYTwCxthr4YqVARo4AgTYO4JFfnvNHbpmqrnrNcjq5xlATq2Y1sFXU8isqpm6IhOcIAHCWKrUOko5j0UGF+FYXn0oapMGMICi/NK3YWvb0Su3cTCSWXLBjVR8n/beZhQJhzyqvGPgd22EoYc1lt+2p+h6zwAWqsWDkVCCiSb1m7rrZmHecJYMDr8bMf14/3jx2aMndmhyBKIG0QbDYslCg6x4DDIP0kom5da3XUSd/+COqWq X-Forefront-PRVS: 0094E3478A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(377454003)(24454002)(43544003)(13464003)(189002)(199003)(83506001)(77096005)(50466002)(86362001)(66066001)(110136003)(23676002)(1076002)(81156014)(81166006)(586003)(6116002)(3846002)(33656002)(7736002)(21086003)(7416002)(47776003)(5660300001)(2950100002)(7846002)(6916009)(6666003)(305945005)(101416001)(54356999)(76176999)(50986999)(189998001)(92566002)(69596002)(19580395003)(4001350100001)(97736004)(9686002)(19580405001)(36756003)(42186005)(4326007)(2906002)(8676002)(105586002)(68736007)(106356001)(15975445007)(7099028)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR0401MB1725;H:hgst.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjA0MDFNQjE3MjU7MjM6eE5Ycyt0ZDZlVC9pWmxKMzJKQnRvbGVD?= =?utf-8?B?b2NjaW53V25jeUFyRllJVm55MlpzVDBoRnUwdkgxSjVqTVcycUEzN3VhdnV4?= =?utf-8?B?MlNjeEdxZ0lZWDJLZUgxQmJ6bGZ6TmtHaktNOHpJMEF1ZzgvLzhXTjgwdjlT?= =?utf-8?B?MDhPOEtKQjhMQ1grdE4vbkJmVFFhUXhxWDdLWnBnTVJkK0ZZaUQ1RnNtbS8r?= =?utf-8?B?T1kvQjFwVEFONXZSWG9KN01lVlhjN3hHUkNha0hNZmxwcGl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u49CiRiEgUYtA2Cz4j4sKIdD/dI4OToOdOg X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2016 22:12:35.7143 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0401MB1725 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3321 Lines: 73 The 10/13/2016 15:05, Sathya Prakash Veerichetty wrote: > By removing the code below, we put all the commands for all the types of > devices (SAS/SATA) as simple-Q (requeue as the device require) and I am > not sure whether it is the intention of this change. > This is the intention of the change. I don't think the iopriority of the request is being used correctly. What does it mean to use 0x7 as an indicator that a command should be put at the head of the queue? This would be clearer if it was using some of the macros from ioprio. If 0x7 means something special I think this should be some #define in the includes of the fusion driver with some documentation. > -----Original Message----- > From: Adam Manzanares [mailto:adam.manzanares@hgst.com] > Sent: Thursday, October 13, 2016 1:54 PM > To: axboe@kernel.dk; tj@kernel.org; dan.j.williams@intel.com; > hare@suse.de; martin.petersen@oracle.com; mchristi@redhat.com; > toshi.kani@hpe.com; ming.lei@canonical.com; sathya.prakash@broadcom.com; > chaitra.basappa@broadcom.com; suganath-prabu.subramani@broadcom.com > Cc: linux-block@vger.kernel.org; linux-ide@vger.kernel.org; > linux-kernel@vger.kernel.org; MPT-FusionLinux.pdl@broadcom.com; > linux-scsi@vger.kernel.org; Adam Manzanares; Adam Manzanares > Subject: [PATCH v4 2/4] fusion: remove iopriority handling > > The request priority is now by default coming from the ioc. It was not > clear what this code was trying to do based upon the iopriority class or > data. The driver should check that a device supports priorities and use > them according to the specificiations of ioprio. > > Signed-off-by: Adam Manzanares > --- > drivers/message/fusion/mptscsih.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/message/fusion/mptscsih.c > b/drivers/message/fusion/mptscsih.c > index 6c9fc11..4740bb6 100644 > --- a/drivers/message/fusion/mptscsih.c > +++ b/drivers/message/fusion/mptscsih.c > @@ -1369,11 +1369,6 @@ mptscsih_qcmd(struct scsi_cmnd *SCpnt) > if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) > && (SCpnt->device->tagged_supported)) { > scsictl = scsidir | MPI_SCSIIO_CONTROL_SIMPLEQ; > - if (SCpnt->request && SCpnt->request->ioprio) { > - if (((SCpnt->request->ioprio & 0x7) == 1) || > - !(SCpnt->request->ioprio & 0x7)) > - scsictl |= MPI_SCSIIO_CONTROL_HEADOFQ; > - } > } else > scsictl = scsidir | MPI_SCSIIO_CONTROL_UNTAGGED; > > -- > 2.1.4 > > Western Digital Corporation (and its subsidiaries) E-mail Confidentiality > Notice & Disclaimer: > > This e-mail and any files transmitted with it may contain confidential or > legally privileged information of WDC and/or its affiliates, and are > intended solely for the use of the individual or entity to which they are > addressed. If you are not the intended recipient, any disclosure, copying, > distribution or any action taken or omitted to be taken in reliance on it, > is prohibited. If you have received this e-mail in error, please notify > the sender immediately and delete the e-mail in its entirety from your > system. > -- > To unsubscribe from this list: send the line "unsubscribe linux-ide" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Take care, Adam