Re: [PATCH] raid1: use __GFP_NOFAIL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 1 May 2009, Alasdair G Kergon wrote:

> On Mon, Apr 27, 2009 at 07:01:22AM -0400, Mikulas Patocka wrote:
> > This is a bug I found when implementing the barriers. There should be 
> > __GFP_NOFAIL if the code can't handle an allocation failure.
>  
> See also this one:
>   dm-raid1-mempool-bug-workaround-reversion.patch
> 
> Has the original reason for that workaround gone away now or is that
> mempool still being used incorrectly?
> 
> Alasdair

As I said on chat, don't remove that GFP_IO allocation. The code is 
deadlocky anyway and allocation from a mempool with GFP_ATOMIC and, in 
case of failure, allocation from memory with GFP_IO is the best that can 
be done to reduce the probability of the deadlock.

Mikulas

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux