Re: [PATCH] Fix two potential mem leaks in MPT Fusion (mpt_attach())

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matthew Wilcox <matthew@...>
Cc: Jesper Juhl <jesper.juhl@...>, Eric Moore <Eric.Moore@...>, <DL-MPTFusionLinux@...>, Linux Kernel Mailing List <linux-kernel@...>, <support@...>, <mpt_linux_developer@...>, <linux-scsi@...>, James Bottomley <James.Bottomley@...>
Date: Thursday, August 2, 2007 - 1:13 am

On Wed, 1 Aug 2007 21:03:50 -0600 Matthew Wilcox <matthew@wil.cx> wrote:


hrm.  People reach for GFP_ATOMIC so often that it becomes a habit, I guess.

It makes one wonder how much that lovely fault-injection framework is being
used.



There would be a few.  mempool does a non-__GFP_WAIT allocation
deliberately, for example (I still think that's fishy btw).

But I don't expect there would be a large number of falsies.  We could add
a __GFP_I_REALLY_MEANT_ATOMIC flag to shut those up.


Could.  But GFP_ATOMIC at initcall-time really isn't a problem (except that
it can probably also happen at modprobe-time).

What is the major concern is needlessly atomic allocations at regular
runtime.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Fix two potential mem leaks in MPT Fusion (mpt_a..., Andrew Morton, (Thu Aug 2, 1:13 am)