Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1590867 > unrolled thread

Kernel bio layer is sending bio size more than our block device is capable of handling

Started byUmesh Patel <Umesh.Patel@hgst.com>
First post2017-03-02 07:50 +0100
Last post2017-03-03 08:20 +0100
Articles 6 — 3 participants

Back to article view | Back to linux.kernel


Contents

  Kernel bio layer is sending bio size more than our block device is  capable of handling Umesh Patel <Umesh.Patel@hgst.com> - 2017-03-02 07:50 +0100
    RE: Kernel bio layer is sending bio size more than our block device  is capable of handling Umesh Patel <Umesh.Patel@wdc.com> - 2017-03-02 17:10 +0100
      Re: Kernel bio layer is sending bio size more than our block device  is capable of handling Christoph Hellwig <hch@infradead.org> - 2017-03-02 18:20 +0100
        RE: Kernel bio layer is sending bio size more than our block device  is capable of handling Umesh Patel <Umesh.Patel@wdc.com> - 2017-03-02 19:50 +0100
    Re: Kernel bio layer is sending bio size more than our block device  is capable of handling Christoph Hellwig <hch@infradead.org> - 2017-03-02 17:30 +0100
    Re: Kernel bio layer is sending bio size more than our block device  is capable of handling Umesh Patel <Umesh.Patel@hgst.com> - 2017-03-03 08:20 +0100

#1590867 — Kernel bio layer is sending bio size more than our block device is capable of handling

FromUmesh Patel <Umesh.Patel@hgst.com>
Date2017-03-02 07:50 +0100
SubjectKernel bio layer is sending bio size more than our block device is capable of handling
Message-ID<tgsIN-6Nv-1@gated-at.bofh.it>
Hello,

We are registering bio size of our device with linux kernel with below
available kernel API.  blk_queue_max_hw_sectors(dev->osdev.queue,
(dev->aggr_max_size >> KERNEL_SECTOR_SHIFT));.

Max size of bio that our block device can handle is 106496 bytes (104KB) but
linux block device is sending 262144  bytes (256 KB) which is more than we
are registering with kernel.

This issue we are observing in 4.4.0-59-generic kernel version. Until this
we had not seen this issue.
So does anything extra require to tell linux kernel or anything else need to
register ?


Thanks
 



--
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-tp1381843.html
Sent from the Linux Kernel mailing list archive at Nabble.com.

[toc] | [next] | [standalone]


#1591237 — RE: Kernel bio layer is sending bio size more than our block device is capable of handling

FromUmesh Patel <Umesh.Patel@wdc.com>
Date2017-03-02 17:10 +0100
SubjectRE: Kernel bio layer is sending bio size more than our block device is capable of handling
Message-ID<tgBsK-4MC-23@gated-at.bofh.it>
In reply to#1590867
Hi Christoph Hellwig,

Thanks for reply.
BTW (since I'm new) what is linux-block list ?. Is it subscribe ?.
Can you please let me know which is latest kernel version ?


Thanks,
Umesh

-----Original Message-----
From: Christoph Hellwig [mailto:hch@infradead.org] 
Sent: Thursday, March 2, 2017 9:13 PM
To: Umesh Patel
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel bio layer is sending bio size more than our block device is capable of handling

Please post your driver to the linux-block list, and test a recent kernel.

[toc] | [prev] | [next] | [standalone]


#1591313 — Re: Kernel bio layer is sending bio size more than our block device is capable of handling

FromChristoph Hellwig <hch@infradead.org>
Date2017-03-02 18:20 +0100
SubjectRe: Kernel bio layer is sending bio size more than our block device is capable of handling
Message-ID<tgCyv-5uu-39@gated-at.bofh.it>
In reply to#1591237
Hi Umesh,

it's linux-block@vger.kernel.org, and the place where all block layer
and driver development happens, you can subsribe to it using the
same way you subscribed to linux-kernel, just replacing the list name.

The latest released vesion at this point is Linux 4.10.

[toc] | [prev] | [next] | [standalone]


#1591394 — RE: Kernel bio layer is sending bio size more than our block device is capable of handling

FromUmesh Patel <Umesh.Patel@wdc.com>
Date2017-03-02 19:50 +0100
SubjectRE: Kernel bio layer is sending bio size more than our block device is capable of handling
Message-ID<tgDXA-6l8-23@gated-at.bofh.it>
In reply to#1591313
Hi Christoph Hellwig,

So 4.4.0-59-generic is not stable one ?. If not then probably it would be problem for us if customer want the same kernel version!.


Thanks,
Umesh



-----Original Message-----
From: Christoph Hellwig [mailto:hch@infradead.org] 
Sent: Thursday, March 2, 2017 9:34 PM
To: Umesh Patel
Cc: Christoph Hellwig; linux-kernel@vger.kernel.org
Subject: Re: Kernel bio layer is sending bio size more than our block device is capable of handling

Hi Umesh,

it's linux-block@vger.kernel.org, and the place where all block layer and driver development happens, you can subsribe to it using the same way you subscribed to linux-kernel, just replacing the list name.

The latest released vesion at this point is Linux 4.10.

[toc] | [prev] | [next] | [standalone]


#1591257 — Re: Kernel bio layer is sending bio size more than our block device is capable of handling

FromChristoph Hellwig <hch@infradead.org>
Date2017-03-02 17:30 +0100
SubjectRe: Kernel bio layer is sending bio size more than our block device is capable of handling
Message-ID<tgBsK-4MC-25@gated-at.bofh.it>
In reply to#1590867
Please post your driver to the linux-block list, and test a recent
kernel.

[toc] | [prev] | [next] | [standalone]


#1591710 — Re: Kernel bio layer is sending bio size more than our block device is capable of handling

FromUmesh Patel <Umesh.Patel@hgst.com>
Date2017-03-03 08:20 +0100
SubjectRe: Kernel bio layer is sending bio size more than our block device is capable of handling
Message-ID<tgPFn-62U-9@gated-at.bofh.it>
In reply to#1590867
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web