From patchwork Mon May 30 07:24:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Reinecke X-Patchwork-Id: 9140337 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 E392260757 for ; Mon, 30 May 2016 07:25:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D47E02796F for ; Mon, 30 May 2016 07:25:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6A552821C; Mon, 30 May 2016 07:25:00 +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=-6.9 required=2.0 tests=BAYES_00,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 4DAA02796F for ; Mon, 30 May 2016 07:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753977AbcE3HY6 (ORCPT ); Mon, 30 May 2016 03:24:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:34336 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753425AbcE3HY6 (ORCPT ); Mon, 30 May 2016 03:24:58 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E4995AB43; Mon, 30 May 2016 07:24:56 +0000 (UTC) From: Hannes Reinecke To: Jens Axboe Cc: Mike Snitzer , Brian King , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Hannes Reinecke Subject: [PATCH] block: don't check request size in blk_cloned_rq_check_limits() Date: Mon, 30 May 2016 09:24:53 +0200 Message-Id: <1464593093-93527-1-git-send-email-hare@suse.de> X-Mailer: git-send-email 1.8.5.6 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When checking a cloned request there is no need to check the overall request size; this won't have changed even when resubmitting to another queue. Without this patch ppc64le on ibmvfc fails to boot. Signed-off-by: Hannes Reinecke Reported-by: Mark Bergman Acked-by: Mike Snitzer --- block/blk-core.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 2475b1c7..e108bf0 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -2160,11 +2160,6 @@ EXPORT_SYMBOL(submit_bio); static int blk_cloned_rq_check_limits(struct request_queue *q, struct request *rq) { - if (blk_rq_sectors(rq) > blk_queue_get_max_sectors(q, rq->cmd_flags)) { - printk(KERN_ERR "%s: over max size limit.\n", __func__); - return -EIO; - } - /* * queue's settings related to segment counting like q->bounce_pfn * may differ from that of other stacking queues.