From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757247AbbE2UjJ (ORCPT ); Fri, 29 May 2015 16:39:09 -0400 Received: from mail-bn1bon0133.outbound.protection.outlook.com ([157.56.111.133]:38368 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756544AbbE2Ui6 convert rfc822-to-8bit (ORCPT ); Fri, 29 May 2015 16:38:58 -0400 From: Long Li To: KY Srinivasan , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "ohering@suse.com" , "jbottomley@parallels.com" , "hch@infradead.org" , "linux-scsi@vger.kernel.org" , "apw@canonical.com" , "vkuznets@redhat.com" , "jasowang@redhat.com" CC: Keith Mange Subject: RE: [PATCH 5/6] scsi: storvsc: use storage protocol version to determine storage capabilities Thread-Topic: [PATCH 5/6] scsi: storvsc: use storage protocol version to determine storage capabilities Thread-Index: AQHQmkLaDZTuoHGkk0WmYeXNth7m3p2TalkQ Date: Fri, 29 May 2015 20:38:56 +0000 Message-ID: References: <1432931336-14434-1-git-send-email-kys@microsoft.com> <1432931359-14473-1-git-send-email-kys@microsoft.com> <1432931359-14473-5-git-send-email-kys@microsoft.com> In-Reply-To: <1432931359-14473-5-git-send-email-kys@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=longli@microsoft.com; x-originating-ip: [2001:4898:80e0:ee43::2] x-microsoft-exchange-diagnostics: 1;DM2PR03MB478;3:f5l7sgz0UUqbxVr6B7VeZh3XDbvVMa3ueO8tuT/AG6xoh5WRV8oPF7LpLiE3i7Jj2bV1hO1+0SW2HoXH5eZHMUrnoox9WwuYZB9369HI3N37EQkg1xAYVEWVFMKZePV0id9Wgua5liMNAbAw5OC0sQ==;10:ljw5OpCApTAaU2ronTcHcUG3E+I49ECRACGUCNpIIfWV/5NxSv15zwx5qC9w8UG/6VGWgKxjOMa6RUdPXI7/M3XQJ5r0DOphIuj1CUcIAnc=;6:rKznPbY6FV9A9f77Fsm0CGa+zbw6FM8gd9oILfx2iXoV9RlYzc5j8TlSxnAV0B6W x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB478; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401001)(5005006)(520003)(3002001);SRVR:DM2PR03MB478;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB478; x-forefront-prvs: 059185FE08 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(377454003)(51704005)(189002)(13464003)(87936001)(101416001)(33656002)(92566002)(1511001)(64706001)(2201001)(5001960100002)(76576001)(107886002)(2656002)(86362001)(105586002)(99286002)(189998001)(106356001)(106116001)(77156002)(50986999)(2501003)(62966003)(74316001)(76176999)(54356999)(86612001)(19580405001)(19580395003)(2421001)(1720100001)(2900100001)(122556002)(40100003)(81156007)(4001540100001)(5001770100001)(97736004)(5001920100001)(5002640100001)(102836002)(2950100001)(46102003)(5001830100001)(77096005)(5001860100001)(68736005)(15975445007)(2561002)(921003)(3826002)(4001430100001)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR03MB478;H:DM2PR03MB416.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2015 20:38:56.4136 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB478 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: devel [mailto:driverdev-devel-bounces@linuxdriverproject.org] On > Behalf Of K. Y. Srinivasan > Sent: Friday, May 29, 2015 1:29 PM > To: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org; > devel@linuxdriverproject.org; ohering@suse.com; jbottomley@parallels.com; > hch@infradead.org; linux-scsi@vger.kernel.org; apw@canonical.com; > vkuznets@redhat.com; jasowang@redhat.com > Cc: Keith Mange > Subject: [PATCH 5/6] scsi: storvsc: use storage protocol version to determine > storage capabilities > > From: keith.mange@microsoft.com > > Use storage protocol version instead of vmbus protocol version when > determining storage capabilities. > Reviewed-by: Long Li > Tested-by: Alex Ng > Signed-off-by: Keith Mange > Signed-off-by: K. Y. Srinivasan > --- > drivers/scsi/storvsc_drv.c | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index > 6f38cdf..58fa47a 100644 > --- a/drivers/scsi/storvsc_drv.c > +++ b/drivers/scsi/storvsc_drv.c > @@ -1049,7 +1049,7 @@ static int storvsc_channel_init(struct hv_device > *device) > * support multi-channel. > */ > max_chns = vstor_packet- > >storage_channel_properties.max_channel_cnt; > - if (vmbus_proto_version >= VERSION_WIN8) { > + if (vmstor_proto_version >= VMSTOR_PROTO_VERSION_WIN8) { > if (vstor_packet->storage_channel_properties.flags & > STORAGE_CHANNEL_SUPPORTS_MULTI_CHANNEL) > process_sub_channels = true; > @@ -1491,9 +1491,9 @@ static int storvsc_device_configure(struct > scsi_device *sdevice) > * if the device is a MSFT virtual device. > */ > if (!strncmp(sdevice->vendor, "Msft", 4)) { > - switch (vmbus_proto_version) { > - case VERSION_WIN8: > - case VERSION_WIN8_1: > + switch (vmstor_proto_version) { > + case VMSTOR_PROTO_VERSION_WIN8: > + case VMSTOR_PROTO_VERSION_WIN8_1: > sdevice->scsi_level = SCSI_SPC_3; > break; > } > -- > 1.7.4.1 > > _______________________________________________ > devel mailing list > devel@linuxdriverproject.org > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel