From: Jens Axboe <axboe@kernel.dk>
To: Umesh Patel <Umesh.Patel@wdc.com>, Christoph Hellwig <hch@infradead.org>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: BIO request larger than our storage device supports in linux kernel 4.x
Date: Wed, 8 Mar 2017 11:13:36 -0700 [thread overview]
Message-ID: <211c3042-5f72-def6-4ede-510fa99ef683@kernel.dk> (raw)
In-Reply-To: <CY1PR0401MB1353F97FF898FB07AB7E5AD3E12E0@CY1PR0401MB1353.namprd04.prod.outlook.com>
On 03/08/2017 11:08 AM, Umesh Patel wrote:
>
> Yes. This is non-open driver for our Flash based PCI drive for enterprise storage solution.
Please don't top post.
> Some snippet of queue related code is below
>
> struct request_queue *queue;
>
> blk_queue_max_hw_sectors(dev->osdev.queue, (dev->aggr_max_size >> KERNEL_SECTOR_SHIFT));
> blk_queue_max_segments(dev->osdev.queue, BLK_MAX_SEGMENTS);
> blk_queue_bounce_limit(dev->osdev.queue, BLK_BOUNCE_ANY);
> blk_queue_logical_block_size(dev->osdev.queue, dev->hardsect_size);
> blk_queue_physical_block_size(dev->osdev.queue, dev->hardsect_size);
>
> dev->osdev.queue = blk_alloc_queue(GFP_KERNEL);
>
> blk_queue_make_request(dev->osdev.queue, fmm_bdev_make_request_wrapper);
>
> Here queue is part of our internal structure struct fmm_bdev *dev
You are doing it wrong, you should be writing this as a blk-mq driver.
Not only would that fix your issue, it would also solve a host of other
issues that I'm sure your driver has since it hasn't even been
reviewed.
Generally, I have very little interest in providing support for non
open drivers. Scratch that, no interest.
--
Jens Axboe
next prev parent reply other threads:[~2017-03-08 18:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CY1PR0401MB13538108F3DFD6738AFC8A34E12E0@CY1PR0401MB1353.namprd04.prod.outlook.com>
2017-03-08 9:34 ` BIO request larger than our storage device supports in linux kernel 4.x Umesh Patel
2017-03-08 14:55 ` Christoph Hellwig
2017-03-08 15:04 ` Jens Axboe
2017-03-08 18:08 ` Umesh Patel
2017-03-08 18:13 ` Jens Axboe [this message]
2017-03-08 18:20 ` Umesh Patel
2017-03-08 18:22 ` Jens Axboe
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=211c3042-5f72-def6-4ede-510fa99ef683@kernel.dk \
--to=axboe@kernel.dk \
--cc=Umesh.Patel@wdc.com \
--cc=hch@infradead.org \
--cc=linux-block@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