Return-Path: To: Hannes Reinecke Cc: "Martin K. Petersen" , Mike Snitzer , Jens Axboe , Brian King , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, mark.bergman@uphs.upenn.edu Subject: Re: block: don't check request size in blk_cloned_rq_check_limits() From: "Martin K. Petersen" References: <1464593093-93527-1-git-send-email-hare@suse.de> <20160610131901.GA28570@redhat.com> <575BE182.5010304@suse.de> Date: Sat, 11 Jun 2016 07:06:49 -0400 In-Reply-To: <575BE182.5010304@suse.de> (Hannes Reinecke's message of "Sat, 11 Jun 2016 12:01:38 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain List-ID: >>>>> "Hannes" == Hannes Reinecke writes: Hannes> Because we're checking the wrong limit. The original code checked that the request was smaller than both max_sectors and max_hw_sectors so it would have failed here as well. Hannes> blk_queue_get_max_sectors() is checking limits.max_sectors(), Hannes> but the requests are already fully formed and can extend up to Hannes> limits.max_hw_sectors(). We should not be issuing REQ_TYPE_FS requests larger than max_sectors. How did we get here? -- Martin K. Petersen Oracle Linux Engineering