From patchwork Tue Sep 6 21:25:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Long Li X-Patchwork-Id: 9317877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6958B60B16 for ; Tue, 6 Sep 2016 19:37:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46A3D28D58 for ; Tue, 6 Sep 2016 19:37:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A4E628E97; Tue, 6 Sep 2016 19:37:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=2.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2B3E28E99 for ; Tue, 6 Sep 2016 19:37:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756681AbcIFThK (ORCPT ); Tue, 6 Sep 2016 15:37:10 -0400 Received: from p3plsmtps2ded01.prod.phx3.secureserver.net ([208.109.80.58]:57688 "EHLO p3plsmtps2ded01.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756600AbcIFThH (ORCPT ); Tue, 6 Sep 2016 15:37:07 -0400 Received: from linuxonhyperv.com ([72.167.245.219]) by : HOSTING RELAY : with SMTP id hMAAbxzbWKZkOhMAAbF0Ae; Tue, 06 Sep 2016 12:36:06 -0700 x-originating-ip: 72.167.245.219 Received: by linuxonhyperv.com (Postfix, from userid 511) id 322B519028A; Tue, 6 Sep 2016 14:26:36 -0700 (PDT) From: Long Li To: "K. Y. Srinivasan" , Haiyang Zhang , "James E.J. Bottomley" , "Martin K. Petersen" Cc: devel@linuxdriverproject.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Long Li Subject: [PATCH 3/3] storvsc: use block layer default segment size Date: Tue, 6 Sep 2016 14:25:43 -0700 Message-Id: <1473197143-16760-4-git-send-email-longli@exchange.microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1473197143-16760-1-git-send-email-longli@exchange.microsoft.com> References: <1473197143-16760-1-git-send-email-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfGBfPOcohqz56Zvp4naDbDbpzDyh5CQ6z4qrcLX6rENkRWx6HlaT+Ylmrlx+d1euIINsO1p3DnkiQ+vuMBAswIg06Q5zlHCpT92T9hnYgM881X0Gi/j4 IEp7DuP0f248628fjfxxz4vkErHHAweEryF1wt3dpYmH2H9rBSFlXjzUMf/QsqiSzhLOZW9I1gRU6tQx+fNTlvI7jIxvxwcX+mR6thtknJJyMp+iAN1vuu2J lxVxfeSAvgYBBbvyV8oC5JZlGszh98SilqrZ8pLzjQaTaA5wv23WAzEbGrdJ7f8qqKCACt2QyBeqQK3SujLbJNvA8w9lNoSmyjnb/w3ARDj6tX37iN8ir36p zcC40vart2romkU5flbZoWgU0Cg5G/pOua2POoMAyY80y6rRImAUpT3a1SRypX7cbLgcUdcWDvPEUc+vbfU5MWcPPo85Mg== Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Long Li We no long have the restriction of page size limit in the SG list. Remove it. The driver can properly handle default block segment size. --- drivers/scsi/storvsc_drv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 8328c87..ac57f9c 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1271,9 +1271,6 @@ static int storvsc_do_io(struct hv_device *device, static int storvsc_device_configure(struct scsi_device *sdevice) { - - blk_queue_max_segment_size(sdevice->request_queue, PAGE_SIZE); - blk_queue_bounce_limit(sdevice->request_queue, BLK_BOUNCE_ANY); blk_queue_rq_timeout(sdevice->request_queue, (storvsc_timeout * HZ));