login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
23
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: David Rientjes
Subject:
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
Date: Monday, August 23, 2010 - 1:03 pm
On Mon, 23 Aug 2010, Andrew Morton wrote:
quoted text
> > > > diff --git a/drivers/md/dm-region-hash.c b/drivers/md/dm-region-hash.c > > > > --- a/drivers/md/dm-region-hash.c > > > > +++ b/drivers/md/dm-region-hash.c > > > > @@ -289,8 +289,12 @@ static struct dm_region *__rh_alloc(struct dm_region_hash *rh, region_t region) > > > > struct dm_region *reg, *nreg; > > > > > > > > nreg = mempool_alloc(rh->region_pool, GFP_ATOMIC); > > > > - if (unlikely(!nreg)) > > > > - nreg = kmalloc(sizeof(*nreg), GFP_NOIO | __GFP_NOFAIL); > > > > + if (unlikely(!nreg)) { > > > > + /* FIXME: this may potentially loop forever */ > > > > + do { > > > > + nreg = kmalloc(sizeof(*nreg), GFP_NOIO); > > > > + } while (!nreg); > > > > + } > > > > > > > > nreg->state = rh->log->type->in_sync(rh->log, region, 1) ? > > > > DM_RH_CLEAN : DM_RH_NOSYNC; > > > > > > erm. > > > > > > The reason for adding GFP_NOFAIL in the first place was my observation > > > that the kernel contained lots of open-coded retry-for-ever loops. > > > > > > All of these are wrong, bad, buggy and mustfix. So we consolidated the > > > wrongbadbuggymustfix concept into the core MM so that miscreants could > > > be easily identified and hopefully fixed. > > > > > > > That consolidation would have been unnecessary, then, since all > > allocations with order < PAGE_ALLOC_COSTLY_ORDER automatically loop > > indefinitely in the page allocator. > > The difference is that an order-0 !__GFP_NOFAIL allocation attempt can > fail due to oom-killing. Unless someone broke that. >
This is GFP_NOIO, which all the allocations in this patchset are (or GFP_NOFS), so the oom killer isn't involved. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 0/6] remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 16, 7:57 pm)
[patch 1/6] md: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 16, 7:57 pm)
[patch 2/6] btrfs: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 16, 7:57 pm)
[patch 3/6] gfs2: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 16, 7:57 pm)
[patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 16, 7:58 pm)
[patch 5/6] ntfs: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 16, 7:58 pm)
[patch 6/6] reiserfs: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 16, 7:58 pm)
Re: [patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, Jan Kara
, (Tue Aug 17, 2:51 am)
Re: [patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Tue Aug 17, 10:48 am)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, Andrew Morton
, (Mon Aug 23, 12:26 pm)
Re: [patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, Andrew Morton
, (Mon Aug 23, 12:28 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 23, 12:35 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, Andrew Morton
, (Mon Aug 23, 12:51 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, Andrew Morton
, (Mon Aug 23, 1:01 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 23, 1:03 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 23, 1:08 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, Pekka Enberg
, (Mon Aug 23, 1:09 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 23, 1:13 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, Andrew Morton
, (Mon Aug 23, 1:23 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, Pekka Enberg
, (Mon Aug 23, 1:29 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 23, 1:37 pm)
Re: [patch 1/6] md: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 23, 1:40 pm)
Re: [patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, Jan Kara
, (Mon Aug 23, 3:03 pm)
Re: [patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, Andrew Morton
, (Mon Aug 23, 3:11 pm)
Re: [patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, Jan Kara
, (Mon Aug 23, 3:21 pm)
Re: [patch 4/6] jbd: remove dependency on __GFP_NOFAIL
, David Rientjes
, (Mon Aug 23, 3:22 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Hugh Dickins
Re: Linux 2.6.26-rc1 - pgtable_32.c:178 pmd_bad
Bernhard Beck
[PATCH 001/001] usb-serial: Add ThinkOptics WavIT
Oleg Nesterov
Re: [PATCH 4/5] don't panic if /sbin/init exits or killed
Greg KH
[patch 07/21] rtc-pcf8563: detect polarity of century bit automatically
git
:
Jonathan del Strother
Re: [PATCH] Fixing path quoting issues
Gerrit Pape
[PATCH] fix skipping merge-order test with NO_OPENSSL=1.
Linus Torvalds
Re: Implementing branch attributes in git config
Johannes Schindelin
Re: Trying to use git-filter-branch to compress history by removing large, obsolet...
Gerrit Pape
[PATCH] hooks--update: fix test for properly set up project description file
linux-netdev
:
David Miller
Re: [PATCH 04/15] tg3: Preserve LAA when device control is released
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Sven Wegener
[PATCH] ipvs: Add missing locking during connection table hashing and unhashing
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
Stephen Hemminger
[PATCH 2/2] sky2: fix transmit state on resume
git-commits-head
:
Linux Kernel Mailing List
[SCSI] scsi ioctl: fix kernel-doc warning
Linux Kernel Mailing List
ALSA: HDA - Correct trivial typos in comments.
Linux Kernel Mailing List
i2c-viapro: Add support for SMBus Process Call transactions
Linux Kernel Mailing List
i2c: Documentation: upgrading clients HOWTO
Linux Kernel Mailing List
[PATCH] fix sysctl_nr_open bugs
openbsd-misc
:
Die Gestalt
Re: How to re-build openssl with SHA1 support?
Edwin Eyan Moragas
Re: managing routes for multiple PPPoE connections
Brian Candler
Re: OBSD's perspective on SELinux
Jonathan Schleifer
Why is getaddrinfo breaking POSIX?
Predrag Punosevac
Re: Kernel developers guide/tutorial
Colocation donated by:
Syndicate