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


Groups > linux.kernel > #1512639

Re: [PATCH 46/60] block: deal with dirtying pages for multipage bvec

From Christoph Hellwig <hch@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH 46/60] block: deal with dirtying pages for multipage bvec
Date 2016-10-31 16:50 +0100
Message-ID <syn0t-4i5-1@gated-at.bofh.it> (permalink)
References <sxx1U-3GR-3@gated-at.bofh.it> <sxx1U-3GR-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Oct 29, 2016 at 04:08:45PM +0800, Ming Lei wrote:
> In bio_check_pages_dirty(), bvec->bv_page is used as flag
> for marking if the page has been dirtied & released, and if
> no, it will be dirtied in deferred workqueue.
> 
> With multipage bvec, we can't do that any more, so change
> the logic into checking all pages in one mp bvec, and only
> release all these pages if all are dirtied, otherwise dirty
> them all in deferred wrokqueue.

Just defer the whole bio to the workqueue if we need to redirty any,
that avoids having all these complex iteratations.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 46/60] block: deal with dirtying pages for multipage bvec Ming Lei <tom.leiming@gmail.com> - 2016-10-29 10:20 +0200
  Re: [PATCH 46/60] block: deal with dirtying pages for multipage bvec Christoph Hellwig <hch@infradead.org> - 2016-10-31 16:50 +0100
    Re: [PATCH 46/60] block: deal with dirtying pages for multipage bvec Ming Lei <tom.leiming@gmail.com> - 2016-11-01 01:20 +0100

csiph-web