From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751910AbdCCHQH (ORCPT ); Fri, 3 Mar 2017 02:16:07 -0500 Received: from mwork.nabble.com ([162.253.133.43]:51395 "EHLO mwork.nabble.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751662AbdCCHOn (ORCPT ); Fri, 3 Mar 2017 02:14:43 -0500 Date: Fri, 3 Mar 2017 00:14:36 -0700 (MST) From: Umesh Patel To: linux-kernel@vger.kernel.org Message-ID: <1488525276971-1381844.post@n7.nabble.com> In-Reply-To: <1488435362749-1381843.post@n7.nabble.com> References: <1488435362749-1381843.post@n7.nabble.com> Subject: Re: Kernel bio layer is sending bio size more than our block device is capable of handling MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>From the kernel source code i came to know below things. 4.1 kernel version onward *""nr_pages = min(sdio->pages_in_io, bio_get_nr_vecs(map_bh->b_bdev))""* line has been removed which was considering max_sectors_kb of queue. Now new code is something like this* "nr_pages = min(sdio->pages_in_io, BIO_MAX_PAGES)"*, which is sending 256 bytes of data to our device which we are not supporting. Please let me know is there any other place where i can register my max_sectors_kb to kernel. -- View this message in context: http://linux-kernel.2935.n7.nabble.com/Kernel-bio-layer-is-sending-bio-size-more-than-our-block-device-is-capable-of-handling-tp1381843p1381844.html Sent from the Linux Kernel mailing list archive at Nabble.com.