Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755992AbcJMXCb (ORCPT ); Thu, 13 Oct 2016 19:02:31 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:14539 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbcJMXB6 (ORCPT ); Thu, 13 Oct 2016 19:01:58 -0400 X-IronPort-AV: E=Sophos;i="5.31,490,1473091200"; d="scan'";a="25178988" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Adam.Manzanares@wdc.com; From: Adam Manzanares To: , , , , , , , , , , CC: , , , , , Adam Manzanares , Adam Manzanares Subject: [PATCH v5 2/4] fusion: remove iopriority handling Date: Thu, 13 Oct 2016 16:00:29 -0700 Message-ID: <1476399631-5799-3-git-send-email-adam.manzanares@hgst.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1476399631-5799-1-git-send-email-adam.manzanares@hgst.com> References: <1476399631-5799-1-git-send-email-adam.manzanares@hgst.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.44.173] X-ClientProxiedBy: BY1PR13CA0002.namprd13.prod.outlook.com (10.162.107.140) To BLUPR0401MB1713.namprd04.prod.outlook.com (10.162.215.15) X-MS-Office365-Filtering-Correlation-Id: 3f378d92-aeac-44fb-38c4-08d3f3bcc92e X-Microsoft-Exchange-Diagnostics: 1;BLUPR0401MB1713;2:DIZA2aKfqAZgq4pA80UvUup14f9Ab1vqVPVLQCR2VQ7yS53Icdt0ZcmLFsqbAg1hjcRJeNxu00+GqSeWdLqIXdQmsqb5uR330q7p/VNhJsvMVvfLxoYn5as6q81ZMjVyxkKn5gw6e2mJP0jglTEcITH87affeLLjxcGmDYRjr2VTIirdePEOwIUsuqyLwIrt72r/ihslwtoTYMPzcfBzKQ==;3:TigNvGSAdcL4yviRnpDZQd3re9sPd5njs7nB417l5Td6+KTxNloqr6yyDaxkNk1kInFzT2/0elH/vI5Ceii4avu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Y3HK4PfV25lyZUYsWqwM5KUseOJ2Irz95BC+l+7slO/OI3XaPnDEadHEt7mHqxeY4zJJXdCf0+CQ1fqbGCWPMeRqhZjrjHoNH//BA4v1/QMFklk8zxW7C+GnlCeDPfx2clP2PVYoeMG8+jWKru6UYpmAcXeGw==;20:+1/jx/mDABSIKYsyYJCxYCqB+ZXexXXeRL+xDeUNRC74hdtkucOS0D2v4NCZowI1toXlQrnOLJnehwpeYcxcaf0MPnW0+vQ1lXh9lPXiyU3/px5RbPxq25ADViM/c2Ix5I7gBQSd1j03NpSQ9CAjYO6fvSFC+YHLM5bz/bBSVWC7X2isNcOU/9LY+SIezbgNoaa15ybausm99ElKmyaY1jwskO2BkaWRtxtUZ4y5qi+K9GFj3k7c9TQi+YHi3NnlHv4QYdJN4yG17FAnSiVoqMCaLiS2caajQCdynmU0wU793Wh/sgCnLpa8Uhjr3NAxMslWMKlITZXrP+qZk2pMqb/EueqV0eHd6C/iACwaDvk+YAABh1uhWmDKVP1Rml5raou7CHzu/A2ExGGYLnIeMN4jmD1Om1gSxKTTFIQ04yqZHTb00DMHZyR1bZZUl0TeNnKs+lfYwPkE2Mox9G4enzpqyvMlwDFSic0JY8JXMPTDEiU4fRX93i+u9kSihjXW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:BLUPR0401MB1713;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0401MB1713; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0401MB1713;4:gtXDTIPtZF/ispN1W6wUWYEPDoxEL9YP/kXQURIl7FN1e0zZbpSk1+jHYOzkqTtfycYGS9qsQD1YdrI3Xm3yLSTnRpXQAvGTbQbVx/N+5fJm7CqhUAsYthhf0VwzaiyH2yWtZyiORaVeXog4WPTLlq70bOaGlZ3R54f1LVXry4sIsWwVKkQLSPM86LtlZ9eAEJbkRXarin+W4SNOXLdSdXCtBLg3uKktkJCS8bQ7Z/AST2IUxDsYdWUvilhdju4nAqORYXflJD9/NODqXGbobEkZTVIXTARk2YfWH+0PtRt77e8Ye0pf7t+vMWJPoi0HtcEKizD7bzIW5e+e7l/j6xxmP6OD+cx1AbUYBF4Sy2GgiCnxEDD5TOeOgxWWEwIBFXn0VqbEBgnG0p15rLus+aasEsA6nVpdUBvdhPMWChU= X-Forefront-PRVS: 0094E3478A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(92566002)(4326007)(42882006)(7416002)(3846002)(36756003)(106356001)(7846002)(305945005)(6116002)(2906002)(50226002)(97736004)(105586002)(19580395003)(47776003)(2201001)(2950100002)(48376002)(33646002)(586003)(7736002)(66066001)(19580405001)(76176999)(6666003)(42186005)(5003940100001)(189998001)(50466002)(77096005)(229853001)(5001770100001)(68736007)(50986999)(5660300001)(8676002)(81166006)(81156014)(101416001)(7099028)(921003)(1121003)(2101003)(83996005);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR0401MB1713;H:penguito.sanjose.hgst.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0401MB1713;23:wpeukvwW6HPuAZAqb2AFG8DT27qk3CQ/CLmrIqq?= =?us-ascii?Q?x6uKNBGXZX231G48tnYUgzguK3v+w3WflKoTUWj3hJldqLKJo3XzwtkpfiS1?= =?us-ascii?Q?u19wUd/GLOI885h2pucIOnsRREBbudNljfpEyNyKkZoyy6FnneKNBecFQ+Jd?= =?us-ascii?Q?gJg1uh33KcRFtcRiaQXwVNIy1eW/rUSVmQId7ZcnJyqH6hNgcPKIDlYz436n?= =?us-ascii?Q?0wpt75SWNvkbq1mTx8XE/K0NcMYaWE+nGaKL6qqeyGtGJNtFQq0fX5UVjg4q?= =?us-ascii?Q?2TfSEYfAlBJ+yhgyN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coJ4fWD?= =?us-ascii?Q?uvIwtovDuMfwz7k1yheg9iCDbeUhmNqoEdyBm?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR0401MB1713;6:2tmGzr7fUEBcWdjIk7Dr444ZGe4j6YONQ0BDndZFuEyHKYvj5XTSg3uTHgdXkyZ/ro9yAKUj8C/mdjjxn6d+DjBNYJswz7mDDCco/pD4yz8XBN367yZBOVwycdzenIkNPfXLrniDOtE2KmEJadYg+x3w69o6mz1RRObJSSOiO0vuaxOEkOJUv9JmOCCm1m4ObF62gbbYBkS11AyTviZ17KItaR3YzO07sdCQgf7R3vrFA+TBbsV65VbIEbALhVtD0pTG4+GXYCLgCtHFGsy91yhfxMk9+oy7Z8p7LY74k4IG5ja5W0QlZdLk28wua5Io4da2qdoJEOVFfQDeMOYvQY3V6JoNbBiFhyD+OmekKT0=;5:hcbZWog4CYkk00HjmPzIvhXFMRr0jVZY9kxM2p8m5m01txDLzEjPrQPe2gMZYuNQ2fGltyW26xVZfFJZ3IsaWqt4UpwXf3/XDszVF/e/T0SkPuuzrWDCNbaznOmB2wxWw1qmTE66PJOmXZVaPhJ2BXmxLO8VJjTFGmndtOGejXw=;24:7LE7EwltM1tQ6I5jDrWJ+QE0CtPt8o4XMlUJDOWlOiQW6vNoqo67ZeUH5i49kpmxfSOzEBfmx4MOVYkkpLTpgfZrLbsjEWBIPc9lcWV82m0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR0401MB1713;7:XEXNhrF5gWyj04HQeN6I8cn4gOv9eiVxjj17crVBaLDVkgOzhHlYBvgnN2iToi6y6MnSnYEDY74C9zzckr8J9xr89LfAF96w36vUl47XjepWFGJWVMoc9XsiCddKmbYqbVp7pWfIyAycruerszBCVjCH6W7FGYJwxu5n1bAR0JLnNo0/5l6ENt0nL+OVhjV/EYcqDR9jfehzk2gfOHuS38PZxxbsC+a6uOMbs05DJSoIHkYuhvzj5kHzzbxqFBaHgyIgDj9YokCyDeK3n0bxkt3HS9+XAmGKwLBFqMc0/wfEomFHRWMBQ7qeK1QjRB8jvkwM8juK/h0Urbufubx3bXv0OBrJx7b9s3ueCyebDRQ=;20:Il/upsPhuszGwEmeYkzJ1QQNnbn8Nk3TzUgJ+5qLyw6ejdwh90l+Q9W9WSLCwxyLma8SCmS/uyEkUxhm1/+VFOBpuKIr4uvqDZHuun5lvWHpgvH3QR6YPnn7IW1aDpq+1QyCvOrzpaqBIBUNXRxU4EQqeBes5ZVovqbbZKtkzQSWyksVKv3gfqVarmAbQ1ZN26MI9Tb+HVpGy8whGSD87NK1Oi0Mt5su0M5Zuf5FOIN3xa+0HNo+JBz8WIVl13Mq X-OriginatorOrg: hgst.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2016 23:00:50.3065 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0401MB1713 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1075 Lines: 28 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