Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1273284
| From | Vlastimil Babka <vbabka@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/5] mm, page_owner: copy page owner info during migration |
| Date | 2015-11-19 17:50 +0100 |
| Message-ID | <qwAzg-3nx-17@gated-at.bofh.it> (permalink) |
| References | <qr7Rf-24F-3@gated-at.bofh.it> <qr7Rf-24F-1@gated-at.bofh.it> <qsFHc-5tw-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/08/2015 10:29 PM, Hugh Dickins wrote: > > Would it be possible to move that line into migrate_page_copy()? > > I don't think it's wrong where you placed it, but that block is really > about resetting the old page ready for freeing, and I'd prefer to keep > all the transference of properties from old to new in migrate_page_copy() > if we can. OK, makes sense, will do in v2. > But check how that behaves in the migrate_misplaced_transhuge_page() > case: I haven't studied long enough, but I think you may have been missing > to copy_page_owner in that case; You're right, I missed that path :/ > but beware of its "fail_putback", which > for some things nastily entails undoing what's already been done. Yeah, I think I don't need to reset page owner info in the fail_putback path, for the same reason I don't reset it from the old page when migration is successful. The page is going to be freed anyway, and if it somehow hits a bug before that, we will still have something to print (after patch 5). Thanks! -- 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 | Find similar | Unroll thread
Re: [PATCH 3/5] mm, page_owner: copy page owner info during migration Vlastimil Babka <vbabka@suse.cz> - 2015-11-19 17:50 +0100
csiph-web