On Tue, Sep 01, 2015 at 01:31:47PM +0200, Ingo Molnar wrote:
> 
> * Peter Zijlstra <[email protected]> wrote:
> 
> > +struct __find_pci2phy(int segment)
> > +{
> > +   struct pci2phy_map *map;
> > +
> > +   lockdep_assert_held(&pci2phy_map_lock);
> > +
> > +   list_for_each_entry(map, &pci2phy_map_head, list) {
> > +           if (map->segment == segment)
> > +                   return map;
> > +   }
> > +
> > +   map = kmalloc(sizeof(struct pci2phy_map), GFP_ATOMIC);
> 
> I really don't think we should be adding new GFP_ATOMIC allocations whenever 
> it 
> can be avoided.

I tend to agree, it makes the whole thing rather fragile...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to