* [PATCH v6 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES
2016-05-30 13:34 [PATCH v6 0/8] block: prepare for multipage bvecs Ming Lei
@ 2016-05-30 13:34 ` Ming Lei
2016-06-01 13:48 ` Christoph Hellwig
2016-05-31 15:53 ` [PATCH v6 0/8] block: prepare for multipage bvecs Mike Snitzer
` (2 subsequent siblings)
3 siblings, 1 reply; 15+ messages in thread
From: Ming Lei @ 2016-05-30 13:34 UTC (permalink / raw)
To: Jens Axboe, linux-kernel
Cc: linux-block, Christoph Hellwig, Ming Lei,
supporter:XFS FILESYSTEM
BIO_MAX_PAGES is used as maximum count of bvecs, so
replace BIO_MAX_SECTORS with BIO_MAX_PAGES since
BIO_MAX_SECTORS is to be removed.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
fs/xfs/xfs_buf.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index e71cfbd..e5d713b 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -1157,9 +1157,7 @@ xfs_buf_ioapply_map(
next_chunk:
atomic_inc(&bp->b_io_remaining);
- nr_pages = BIO_MAX_SECTORS >> (PAGE_SHIFT - BBSHIFT);
- if (nr_pages > total_nr_pages)
- nr_pages = total_nr_pages;
+ nr_pages = min(total_nr_pages, BIO_MAX_PAGES);
bio = bio_alloc(GFP_NOIO, nr_pages);
bio->bi_bdev = bp->b_target->bt_bdev;
--
1.9.1
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v6 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES
2016-05-30 13:34 ` [PATCH v6 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES Ming Lei
@ 2016-06-01 13:48 ` Christoph Hellwig
2016-06-02 3:32 ` Ming Lei
0 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2016-06-01 13:48 UTC (permalink / raw)
To: Ming Lei
Cc: linux-block, Christoph Hellwig, linux-kernel,
supporter:XFS FILESYSTEM, Jens Axboe
On Mon, May 30, 2016 at 09:34:33PM +0800, Ming Lei wrote:
> diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
> index e71cfbd..e5d713b 100644
> --- a/fs/xfs/xfs_buf.c
> +++ b/fs/xfs/xfs_buf.c
> @@ -1157,9 +1157,7 @@ xfs_buf_ioapply_map(
>
> next_chunk:
> atomic_inc(&bp->b_io_remaining);
> - nr_pages = BIO_MAX_SECTORS >> (PAGE_SHIFT - BBSHIFT);
> - if (nr_pages > total_nr_pages)
> - nr_pages = total_nr_pages;
> + nr_pages = min(total_nr_pages, BIO_MAX_PAGES);
>
> bio = bio_alloc(GFP_NOIO, nr_pages);
While I think this is a useful cleanup on it's own I think
you'd make everyones life easier if bio_alloc simply clamped down
the passed nr_pages value to the maximum allowed.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES
2016-06-01 13:48 ` Christoph Hellwig
@ 2016-06-02 3:32 ` Ming Lei
0 siblings, 0 replies; 15+ messages in thread
From: Ming Lei @ 2016-06-02 3:32 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Jens Axboe, linux-block, Linux Kernel Mailing List,
supporter:XFS FILESYSTEM
On Wed, Jun 1, 2016 at 9:48 PM, Christoph Hellwig <hch@infradead.org> wrote:
> On Mon, May 30, 2016 at 09:34:33PM +0800, Ming Lei wrote:
>> diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
>> index e71cfbd..e5d713b 100644
>> --- a/fs/xfs/xfs_buf.c
>> +++ b/fs/xfs/xfs_buf.c
>> @@ -1157,9 +1157,7 @@ xfs_buf_ioapply_map(
>>
>> next_chunk:
>> atomic_inc(&bp->b_io_remaining);
>> - nr_pages = BIO_MAX_SECTORS >> (PAGE_SHIFT - BBSHIFT);
>> - if (nr_pages > total_nr_pages)
>> - nr_pages = total_nr_pages;
>> + nr_pages = min(total_nr_pages, BIO_MAX_PAGES);
>>
>> bio = bio_alloc(GFP_NOIO, nr_pages);
>
> While I think this is a useful cleanup on it's own I think
> you'd make everyones life easier if bio_alloc simply clamped down
> the passed nr_pages value to the maximum allowed.
Yes, that looks a good cleanup, but need be careful because the
passed 'nr_pages' can be used after returning from bio_alloc() in
the current function, and it is easy to see this usage.
So we can do that in another patchset instead of this one.
Thanks,
> --
> To unsubscribe from this list: send the line "unsubscribe linux-block" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-05-30 13:34 [PATCH v6 0/8] block: prepare for multipage bvecs Ming Lei
2016-05-30 13:34 ` [PATCH v6 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES Ming Lei
@ 2016-05-31 15:53 ` Mike Snitzer
2016-06-01 12:38 ` Ming Lei
2016-06-01 13:43 ` Christoph Hellwig
2016-06-09 16:06 ` Jens Axboe
3 siblings, 1 reply; 15+ messages in thread
From: Mike Snitzer @ 2016-05-31 15:53 UTC (permalink / raw)
To: Ming Lei
Cc: linux-block, Michal Hocko, Jan Kara, Martin K. Petersen,
Christoph Hellwig, Steven Whitehouse, linux-kernel, Sagi Grimberg,
NeilBrown, Jens Axboe, Joe Thornber, Al Viro, Shaohua Li,
Tejun Heo, Keith Busch, open list:XFS FILESYSTEM, Kent Overstreet,
Kirill A. Shutemov, open list:DRBD DRIVER
On Mon, May 30 2016 at 9:34am -0400,
Ming Lei <ming.lei@canonical.com> wrote:
>
> Hi,
>
> Interests[1] have been shown in multipage bvecs, so this patchset
> try to prepare for the support and do two things:
>
> 1) the 1st 4 patches use bvec iterator to implement iterate_bvec(),
> then we can drop the non-standard way for iterating bvec, which
> can be thought as a good cleanup for lib/iov_iter.c
>
> 2) remove BIO_MAX_SECTORS and makre BIO_MAX_SIZE as obsolete, and
> now there is only one user for each. Once multipage bvecs is introduced,
> one bio may hold lots of sectors, and we should always use sort of
> BIO_MAX_VECS which should be introduced in future and is similiar
> with current BIO_MAX_PAGES.
>
> The only functional change is iterate_bvec():lib/iov_iter.c
>
> xfstests(-a auto) over loop aio is run for ext4/xfs to verify
> the change and no regression found with this patchset.
>
> V6:
> - rebased on v4.7-rc1
> - add reviewed-by tag
> - mark BIO_MAX_SIZE as obsolete instead of removing because
> dm-tree adds one usage now
Not sure what you're referring to here with "dm-tree" (since "dm-tree"
doesn't exist). But only direct user of "BIO_MAX_SIZE" in DM appears to
be dm-crypt.c. Maybe you've identified some indirect use of
BIO_MAX_SIZE?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-05-31 15:53 ` [PATCH v6 0/8] block: prepare for multipage bvecs Mike Snitzer
@ 2016-06-01 12:38 ` Ming Lei
2016-06-01 13:44 ` Christoph Hellwig
0 siblings, 1 reply; 15+ messages in thread
From: Ming Lei @ 2016-06-01 12:38 UTC (permalink / raw)
To: Mike Snitzer
Cc: linux-block, Michal Hocko, Jan Kara, Martin K. Petersen,
Christoph Hellwig, Steven Whitehouse, Linux Kernel Mailing List,
Sagi Grimberg, NeilBrown, Jens Axboe, Joe Thornber, Al Viro,
Shaohua Li, Tejun Heo, Keith Busch, open list:XFS FILESYSTEM,
Kent Overstreet, Kirill A. Shutemov, open list:DRBD DRIVER
On Tue, May 31, 2016 at 11:53 PM, Mike Snitzer <snitzer@redhat.com> wrote:
> On Mon, May 30 2016 at 9:34am -0400,
> Ming Lei <ming.lei@canonical.com> wrote:
>
>>
>> Hi,
>>
>> Interests[1] have been shown in multipage bvecs, so this patchset
>> try to prepare for the support and do two things:
>>
>> 1) the 1st 4 patches use bvec iterator to implement iterate_bvec(),
>> then we can drop the non-standard way for iterating bvec, which
>> can be thought as a good cleanup for lib/iov_iter.c
>>
>> 2) remove BIO_MAX_SECTORS and makre BIO_MAX_SIZE as obsolete, and
>> now there is only one user for each. Once multipage bvecs is introduced,
>> one bio may hold lots of sectors, and we should always use sort of
>> BIO_MAX_VECS which should be introduced in future and is similiar
>> with current BIO_MAX_PAGES.
>>
>> The only functional change is iterate_bvec():lib/iov_iter.c
>>
>> xfstests(-a auto) over loop aio is run for ext4/xfs to verify
>> the change and no regression found with this patchset.
>>
>> V6:
>> - rebased on v4.7-rc1
>> - add reviewed-by tag
>> - mark BIO_MAX_SIZE as obsolete instead of removing because
>> dm-tree adds one usage now
>
> Not sure what you're referring to here with "dm-tree" (since "dm-tree"
> doesn't exist). But only direct user of "BIO_MAX_SIZE" in DM appears to
Looks it is from crypto tree:
git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
> be dm-crypt.c. Maybe you've identified some indirect use of
> BIO_MAX_SIZE?
I mean the recently introduced BIO_MAX_SIZE in -next tree:
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/md/dm-crypt.c?id=4ed89c97b0706477b822ea2182827640c0cec486
> --
> To unsubscribe from this list: send the line "unsubscribe linux-block" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-06-01 12:38 ` Ming Lei
@ 2016-06-01 13:44 ` Christoph Hellwig
2016-06-01 13:51 ` Mike Snitzer
0 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2016-06-01 13:44 UTC (permalink / raw)
To: Ming Lei
Cc: linux-block, Michal Hocko, Jan Kara, Martin K. Petersen,
Mike Snitzer, Christoph Hellwig, Steven Whitehouse,
Linux Kernel Mailing List, Sagi Grimberg, NeilBrown, Jens Axboe,
Joe Thornber, Al Viro, Shaohua Li, Tejun Heo, Keith Busch,
open list:XFS FILESYSTEM, Kent Overstreet, Kirill A. Shutemov,
open list:DRBD DRIVER
On Wed, Jun 01, 2016 at 08:38:41PM +0800, Ming Lei wrote:
> > be dm-crypt.c. Maybe you've identified some indirect use of
> > BIO_MAX_SIZE?
>
> I mean the recently introduced BIO_MAX_SIZE in -next tree:
>
> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/md/dm-crypt.c?id=4ed89c97b0706477b822ea2182827640c0cec486
The crazy bcache bios striking back once again. I really think it's
harmful having a _MAX value and then having a minor driver
reinterpreting it and sending larger ones. Until we can lift the
maximum limit in general nad have common code exercise it we really need
to stop bcache from sending these instead of littering the tree with
workarounds.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-06-01 13:44 ` Christoph Hellwig
@ 2016-06-01 13:51 ` Mike Snitzer
2016-06-01 14:05 ` Christoph Hellwig
2016-06-02 2:13 ` Ming Lei
0 siblings, 2 replies; 15+ messages in thread
From: Mike Snitzer @ 2016-06-01 13:51 UTC (permalink / raw)
To: Christoph Hellwig
Cc: linux-block, Michal Hocko, Jan Kara, Martin K. Petersen,
Steven Whitehouse, Ming Lei, Linux Kernel Mailing List,
Sagi Grimberg, NeilBrown, Jens Axboe, Joe Thornber, Al Viro,
Shaohua Li, Tejun Heo, Keith Busch, open list:XFS FILESYSTEM,
Kent Overstreet, Kirill A. Shutemov, open list:DRBD DRIVER
On Wed, Jun 01 2016 at 9:44am -0400,
Christoph Hellwig <hch@infradead.org> wrote:
> On Wed, Jun 01, 2016 at 08:38:41PM +0800, Ming Lei wrote:
> > > be dm-crypt.c. Maybe you've identified some indirect use of
> > > BIO_MAX_SIZE?
> >
> > I mean the recently introduced BIO_MAX_SIZE in -next tree:
> >
> > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/md/dm-crypt.c?id=4ed89c97b0706477b822ea2182827640c0cec486
>
> The crazy bcache bios striking back once again. I really think it's
> harmful having a _MAX value and then having a minor driver
> reinterpreting it and sending larger ones. Until we can lift the
> maximum limit in general nad have common code exercise it we really need
> to stop bcache from sending these instead of littering the tree with
> workarounds.
So should I not push this type of fix to Linus now? I was going to send
the above commit and this one to him this week:
https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-4.7&id=57b3001b240629ecc5266d28c845e23ca5f11719
Instead, should bcache be made to not do what it is doing?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-06-01 13:51 ` Mike Snitzer
@ 2016-06-01 14:05 ` Christoph Hellwig
2016-06-02 2:13 ` Ming Lei
1 sibling, 0 replies; 15+ messages in thread
From: Christoph Hellwig @ 2016-06-01 14:05 UTC (permalink / raw)
To: Mike Snitzer
Cc: Jens Axboe, Michal Hocko, Jan Kara, Martin K. Petersen,
Steven Whitehouse, Ming Lei, Linux Kernel Mailing List,
Sagi Grimberg, NeilBrown, Christoph Hellwig, Joe Thornber,
linux-block, Al Viro, Shaohua Li, Tejun Heo, Keith Busch,
open list:XFS FILESYSTEM, Kent Overstreet, Kirill A. Shutemov,
open list:DRBD DRIVER
On Wed, Jun 01, 2016 at 09:51:51AM -0400, Mike Snitzer wrote:
> So should I not push this type of fix to Linus now? I was going to send
> the above commit and this one to him this week:
> https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-4.7&id=57b3001b240629ecc5266d28c845e23ca5f11719
>
> Instead, should bcache be made to not do what it is doing?
I think that's much preferably. Otherwise we'll get a constant trickles
of patches like that whenever someone tries bcache on top of another
stacking driver.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-06-01 13:51 ` Mike Snitzer
2016-06-01 14:05 ` Christoph Hellwig
@ 2016-06-02 2:13 ` Ming Lei
1 sibling, 0 replies; 15+ messages in thread
From: Ming Lei @ 2016-06-02 2:13 UTC (permalink / raw)
To: Mike Snitzer
Cc: Jens Axboe, Michal Hocko, Jan Kara, Martin K. Petersen,
Steven Whitehouse, Linux Kernel Mailing List, Sagi Grimberg,
NeilBrown, Christoph Hellwig, Joe Thornber, linux-block, Al Viro,
Shaohua Li, Tejun Heo, Keith Busch, open list:XFS FILESYSTEM,
Kent Overstreet, Kirill A. Shutemov, open list:DRBD DRIVER
On Wed, Jun 1, 2016 at 9:51 PM, Mike Snitzer <snitzer@redhat.com> wrote:
> On Wed, Jun 01 2016 at 9:44am -0400,
> Christoph Hellwig <hch@infradead.org> wrote:
>
>> On Wed, Jun 01, 2016 at 08:38:41PM +0800, Ming Lei wrote:
>> > > be dm-crypt.c. Maybe you've identified some indirect use of
>> > > BIO_MAX_SIZE?
>> >
>> > I mean the recently introduced BIO_MAX_SIZE in -next tree:
>> >
>> > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/md/dm-crypt.c?id=4ed89c97b0706477b822ea2182827640c0cec486
>>
>> The crazy bcache bios striking back once again. I really think it's
>> harmful having a _MAX value and then having a minor driver
>> reinterpreting it and sending larger ones. Until we can lift the
>> maximum limit in general nad have common code exercise it we really need
>> to stop bcache from sending these instead of littering the tree with
>> workarounds.
>
> So should I not push this type of fix to Linus now? I was going to send
> the above commit and this one to him this week:
> https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-4.7&id=57b3001b240629ecc5266d28c845e23ca5f11719
I don't suggest this kind of fix.
That fix should be in bcache or blk-core instead of other places.
Last time, I sent out the following fix([PATCH v1] block: make sure big bio is
splitted into at most 256 bvecs):
https://lkml.org/lkml/2016/4/5/1046
But forget to clear the flag of REQ_NOMERGE for this case.
If Jens doesn't mind doing such thing in block-core, I can post v2
for this issue.
>
> Instead, should bcache be made to not do what it is doing?
It depends on if bcache is the only user of this kind of usage.
In theory, any driver can use external bvec table.
Thanks,
Ming
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-05-30 13:34 [PATCH v6 0/8] block: prepare for multipage bvecs Ming Lei
2016-05-30 13:34 ` [PATCH v6 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES Ming Lei
2016-05-31 15:53 ` [PATCH v6 0/8] block: prepare for multipage bvecs Mike Snitzer
@ 2016-06-01 13:43 ` Christoph Hellwig
2016-06-01 13:53 ` Hannes Reinecke
2016-06-09 16:06 ` Jens Axboe
3 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2016-06-01 13:43 UTC (permalink / raw)
To: Ming Lei
Cc: linux-block, Michal Hocko, Jan Kara, Mike Snitzer,
Martin K. Petersen, Christoph Hellwig, Steven Whitehouse,
linux-kernel, Sagi Grimberg, NeilBrown, Jens Axboe, Joe Thornber,
Al Viro, Shaohua Li, Tejun Heo, Keith Busch,
open list:XFS FILESYSTEM, Kent Overstreet, Kirill A. Shutemov,
open list:DRBD DRIVER
These patches look good on their own. They might be an easier sell
just as bio cleanups :)
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-06-01 13:43 ` Christoph Hellwig
@ 2016-06-01 13:53 ` Hannes Reinecke
2016-06-01 13:57 ` Mike Snitzer
0 siblings, 1 reply; 15+ messages in thread
From: Hannes Reinecke @ 2016-06-01 13:53 UTC (permalink / raw)
To: Christoph Hellwig, Ming Lei
Cc: linux-block, Michal Hocko, Jan Kara, Mike Snitzer,
Martin K. Petersen, Steven Whitehouse, linux-kernel,
Sagi Grimberg, NeilBrown, Jens Axboe, Joe Thornber, Al Viro,
Shaohua Li, Tejun Heo, Keith Busch, open list:XFS FILESYSTEM,
Kent Overstreet, Kirill A. Shutemov, open list:DRBD DRIVER
On 06/01/2016 03:43 PM, Christoph Hellwig wrote:
> These patches look good on their own. They might be an easier sell
> just as bio cleanups :)
Fully agree. I've seen (some) improvements with those patches, so
I'd prefer to have them.
You can add:
Tested-by: Hannes Reinecke <hare@suse.com>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-06-01 13:53 ` Hannes Reinecke
@ 2016-06-01 13:57 ` Mike Snitzer
0 siblings, 0 replies; 15+ messages in thread
From: Mike Snitzer @ 2016-06-01 13:57 UTC (permalink / raw)
To: Hannes Reinecke
Cc: Jens Axboe, Michal Hocko, Jan Kara, Martin K. Petersen,
Steven Whitehouse, Ming Lei, linux-kernel, Sagi Grimberg,
NeilBrown, Christoph Hellwig, Joe Thornber, linux-block, Al Viro,
Shaohua Li, Tejun Heo, Keith Busch, open list:XFS FILESYSTEM,
Kent Overstreet, Kirill A. Shutemov, open list:DRBD DRIVER
On Wed, Jun 01 2016 at 9:53am -0400,
Hannes Reinecke <hare@suse.de> wrote:
> On 06/01/2016 03:43 PM, Christoph Hellwig wrote:
> > These patches look good on their own. They might be an easier sell
> > just as bio cleanups :)
>
> Fully agree. I've seen (some) improvements with those patches, so
> I'd prefer to have them.
Can you be more specific on what improvements you've seen?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-05-30 13:34 [PATCH v6 0/8] block: prepare for multipage bvecs Ming Lei
` (2 preceding siblings ...)
2016-06-01 13:43 ` Christoph Hellwig
@ 2016-06-09 16:06 ` Jens Axboe
2016-06-10 2:44 ` Ming Lei
3 siblings, 1 reply; 15+ messages in thread
From: Jens Axboe @ 2016-06-09 16:06 UTC (permalink / raw)
To: Ming Lei, Jens Axboe, linux-kernel
Cc: Christoph Hellwig, Michal Hocko, Jan Kara, Mike Snitzer,
Martin K. Petersen, NeilBrown, Sagi Grimberg, Steven Whitehouse,
linux-block, Joe Thornber, Al Viro, Shaohua Li, Tejun Heo,
Keith Busch, open list:XFS FILESYSTEM, Kent Overstreet,
Kirill A. Shutemov, open list:DRBD DRIVER
On 05/30/2016 07:34 AM, Ming Lei wrote:
> Hi,
>
> Interests[1] have been shown in multipage bvecs, so this patchset
> try to prepare for the support and do two things:
>
> 1) the 1st 4 patches use bvec iterator to implement iterate_bvec(),
> then we can drop the non-standard way for iterating bvec, which
> can be thought as a good cleanup for lib/iov_iter.c
>
> 2) remove BIO_MAX_SECTORS and makre BIO_MAX_SIZE as obsolete, and
> now there is only one user for each. Once multipage bvecs is introduced,
> one bio may hold lots of sectors, and we should always use sort of
> BIO_MAX_VECS which should be introduced in future and is similiar
> with current BIO_MAX_PAGES.
>
> The only functional change is iterate_bvec():lib/iov_iter.c
>
> xfstests(-a auto) over loop aio is run for ext4/xfs to verify
> the change and no regression found with this patchset.
Added patches 1-7, still waiting for an answer on my reply to #8.
--
Jens Axboe
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v6 0/8] block: prepare for multipage bvecs
2016-06-09 16:06 ` Jens Axboe
@ 2016-06-10 2:44 ` Ming Lei
0 siblings, 0 replies; 15+ messages in thread
From: Ming Lei @ 2016-06-10 2:44 UTC (permalink / raw)
To: Jens Axboe
Cc: linux-block, Michal Hocko, Jan Kara, Mike Snitzer,
Martin K. Petersen, Christoph Hellwig, Steven Whitehouse,
Linux Kernel Mailing List, Sagi Grimberg, NeilBrown, Jens Axboe,
Joe Thornber, Al Viro, Shaohua Li, Tejun Heo, Keith Busch,
open list:XFS FILESYSTEM, Kent Overstreet, Kirill A. Shutemov,
open list:DRBD DRIVER
On Fri, Jun 10, 2016 at 12:06 AM, Jens Axboe <axboe@kernel.dk> wrote:
> On 05/30/2016 07:34 AM, Ming Lei wrote:
>>
>> Hi,
>>
>> Interests[1] have been shown in multipage bvecs, so this patchset
>> try to prepare for the support and do two things:
>>
>> 1) the 1st 4 patches use bvec iterator to implement iterate_bvec(),
>> then we can drop the non-standard way for iterating bvec, which
>> can be thought as a good cleanup for lib/iov_iter.c
>>
>> 2) remove BIO_MAX_SECTORS and makre BIO_MAX_SIZE as obsolete, and
>> now there is only one user for each. Once multipage bvecs is introduced,
>> one bio may hold lots of sectors, and we should always use sort of
>> BIO_MAX_VECS which should be introduced in future and is similiar
>> with current BIO_MAX_PAGES.
>>
>> The only functional change is iterate_bvec():lib/iov_iter.c
>>
>> xfstests(-a auto) over loop aio is run for ext4/xfs to verify
>> the change and no regression found with this patchset.
>
>
> Added patches 1-7, still waiting for an answer on my reply to #8.
Thanks for adding patches 1-7, and now I just found the added
BIO_MAX_SIZE usage in dm-crypt.c is droped from next, so it is
safe to kill it now.
I will send a new patch #8 against for-4.8/core.
Thanks,
Ming
>
> --
> Jens Axboe
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-block" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 15+ messages in thread