Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1212506
| From | Jan Kara <jack@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes |
| Date | 2015-08-24 23:10 +0200 |
| Message-ID | <q17aa-2Ep-17@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <q0WeL-3A1-35@gated-at.bofh.it> <q11o6-2qx-27@gated-at.bofh.it> <q13zA-5J3-11@gated-at.bofh.it> <q15i2-8if-17@gated-at.bofh.it> <q15L4-tl-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon 24-08-15 15:32:42, Tejun Heo wrote: > Hello, Jan. > > On Mon, Aug 24, 2015 at 09:08:47PM +0200, Jan Kara wrote: > > Inode may contain writeback pages (but not dirty pages) without being on > > any of the dirty lists. That is correct. Josef Bacik had patches to create > > Hmmm... Can you please expand on how / why that happens? It's kinda > weird to require writeback to walk all inodes regardless of their > dirty states. It is inefficient, yes. But note that 'writeback' and 'dirty' states are completely independent. Page can be in any of the !dirty & !writeback, dirty & !writeback, !dirty & writeback, dirty & writeback states. So mixing tracking of writeback and dirty state of an inode just makes the code even messier. > > a list to track inodes with pages under writeback but they clashed with > > your patch series and they didn't get rebased yet AFAIR. > > Wouldn't it make more sense to simply put them on one of the existing > b_* lists? Logically it just doesn't make sense because as I wrote above dirty and writeback states are completely independent. Also you'd have to detect & skip inodes that don't really have any dirty pages to write and all the detection of "is there any data to write" would get more complicated. A separate list for inodes under writeback as Josef did is IMO the cleanest solution. Honza -- Jan Kara <jack@suse.com> SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Eryu Guan <eguan@redhat.com> - 2015-08-21 12:30 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Dave Chinner <david@fromorbit.com> - 2015-08-22 02:40 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Eryu Guan <eguan@redhat.com> - 2015-08-22 06:50 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Dave Chinner <david@fromorbit.com> - 2015-08-24 03:20 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Eryu Guan <eguan@redhat.com> - 2015-08-24 05:20 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Dave Chinner <david@fromorbit.com> - 2015-08-24 08:30 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Eryu Guan <eguan@redhat.com> - 2015-08-24 10:40 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Dave Chinner <david@fromorbit.com> - 2015-08-24 11:00 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Jan Kara <jack@suse.cz> - 2015-08-24 11:30 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Tejun Heo <tj@kernel.org> - 2015-08-24 17:00 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Tejun Heo <tj@kernel.org> - 2015-08-24 19:20 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Jan Kara <jack@suse.cz> - 2015-08-24 21:10 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Tejun Heo <tj@kernel.org> - 2015-08-24 21:40 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Jan Kara <jack@suse.cz> - 2015-08-24 23:10 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Tejun Heo <tj@kernel.org> - 2015-08-24 23:50 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Dave Chinner <david@fromorbit.com> - 2015-08-25 01:00 +0200
Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes Tejun Heo <tj@kernel.org> - 2015-08-25 01:00 +0200
csiph-web