mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Umesh Patel <Umesh.Patel@hgst.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Kernel bio layer is sending bio size more than our block device is capable of handling
Date: Fri, 3 Mar 2017 00:14:36 -0700 (MST)	[thread overview]
Message-ID: <1488525276971-1381844.post@n7.nabble.com> (raw)
In-Reply-To: <1488435362749-1381843.post@n7.nabble.com>

>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.

      parent reply	other threads:[~2017-03-03  7:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-02  6:16 Umesh Patel
2017-03-02 15:43 ` Christoph Hellwig
2017-03-02 15:59   ` Umesh Patel
2017-03-02 16:03     ` Christoph Hellwig
2017-03-02 16:15       ` Umesh Patel
2017-03-03  7:14 ` Umesh Patel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488525276971-1381844.post@n7.nabble.com \
    --to=umesh.patel@hgst.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®