From: "Bob Pearson" Subject: RE: [patch v2 28/37] add rxe_arbiter.c Date: Wed, 10 Aug 2011 14:12:29 -0500 Message-ID: <006701cc5791$73527540$59f75fc0$@systemfabricworks.com> References: <20110724194300.421253331@systemfabricworks.com> <20110724201229.515453123@systemfabricworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-us Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: 'Bart Van Assche' Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org Bart, Keep them coming. I have been using my available time for code to get the crc32 patch upstream but that is about done. I've started to look at your comments and really appreciate the time you are taking. Bob > -----Original Message----- > From: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:linux-rdma- > owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Bart Van Assche > Sent: Wednesday, August 10, 2011 1:47 PM > To: rpearson-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org > Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Subject: Re: [patch v2 28/37] add rxe_arbiter.c > > On Sun, Jul 24, 2011 at 9:43 PM, wrote: > > +int rxe_arbiter(void *arg) > > +{ > > + int err; > > + unsigned long flags; > > + struct rxe_dev *rxe = (struct rxe_dev *)arg; > > + struct sk_buff *skb; > > + struct list_head *qpl; > > + struct rxe_qp *qp; > > + > > + /* get the next qp's send queue */ > > + spin_lock_irqsave(&rxe->arbiter.list_lock, flags); > > + if (list_empty(&rxe->arbiter.qp_list)) { > > + spin_unlock_irqrestore(&rxe->arbiter.list_lock, flags); > > + return 1; > > + } > > + > > + qpl = rxe->arbiter.qp_list.next; > > + list_del_init(qpl); > > + qp = list_entry(qpl, struct rxe_qp, arbiter_list); > > + spin_unlock_irqrestore(&rxe->arbiter.list_lock, flags); > > Is there a reason why the list_first_entry() macro hasn't been used in > the above code ? > > Bart. > -- > 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 -- 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