Re: Internalizing M_EXT refcounting and lwbufs

看板DFBSD_kernel作者時間15年前 (2010/12/08 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
On Tue, Dec 7, 2010 at 9:23 AM, Matthew Dillon <dillon@apollo.backplane.com> wrote: > > :I have had a patch kicking around for a while that I finally decided > :to beat into committable form, that brings the reference count into > :the m_ext structure. Currently there are very few users of M_EXT so I > :just modified them all to manage the refcount manually with atomic > :ops. Would we prefer this were functionalized, like FreeBSD has done? > : > :Also, It would be great if we could stuff a lwbuf into m_ext, but the > :only reasonable way I can see to do that is to add an additional > :function pointer which would be used to get the stable reference, as > :well as probably an offset, calling conventions would be slightly > :different for free in this case, and that route just doesn't feel very > :clean... 嚒o I was wondering if anyone had any suggestions? > : > :Thanks, > :Sam > > ꀠ咗ait, embedded into m_ext? 糍he ref count, or the m_ext structure, > ꀠ烀ould have to be made a pointer so multiple mbufs can reference > ꀠ濳he same m_ext. > > ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀭMatt > ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠ嗰atthew Dillon > ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀼdillon@backplane.com> > Yeah, a kmalloc(9)'d int pointed to by the m_ext structure, versus external as now -- sorry if I was unclear. Sam
文章代碼(AID): #1C_dPlg7 (DFBSD_kernel)
文章代碼(AID): #1C_dPlg7 (DFBSD_kernel)