From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hefty, Sean" Subject: RE: [PATCH 09/14] IB/mad: Convert allocations from kmem_cache to kmalloc Date: Wed, 20 May 2015 17:53:31 +0000 Message-ID: <1828884A29C6694DAF28B7E6B8A82373A8FDDAFC@ORSMSX109.amr.corp.intel.com> References: <1432109615-19564-1-git-send-email-ira.weiny@intel.com> <1432109615-19564-10-git-send-email-ira.weiny@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <1432109615-19564-10-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Content-Language: en-US Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Weiny, Ira" , "dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org" Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org" , "hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org" List-Id: linux-rdma@vger.kernel.org > @@ -2678,7 +2693,8 @@ static int ib_mad_post_receive_mads(struct > ib_mad_qp_info *qp_info, > mad_priv = mad; > mad = NULL; > } else { > - mad_priv = kmem_cache_alloc(ib_mad_cache, GFP_KERNEL); > + mad_priv = > + alloc_mad_priv(max_mad_size(qp_info->port_priv), > GFP_KERNEL); Indentation is off -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html