From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: [PATCH 01/14] block: don't check request size in blk_cloned_rq_check_limits() Date: Thu, 2 Jun 2016 16:39:03 +0200 Message-ID: <1464878356-42407-2-git-send-email-hare@suse.de> References: <1464878356-42407-1-git-send-email-hare@suse.de> Return-path: Received: from mx2.suse.de ([195.135.220.15]:54638 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932957AbcFBOjY (ORCPT ); Thu, 2 Jun 2016 10:39:24 -0400 In-Reply-To: <1464878356-42407-1-git-send-email-hare@suse.de> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Martin K. Petersen" Cc: Christoph Hellwig , James Bottomley , James Smart , Dick Kennedy , linux-scsi@vger.kernel.org, Hannes Reinecke 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 --- 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. -- 1.8.5.6