Re: race condition in knote deletion?

看板DFBSD_kernel作者時間15年前 (2011/02/03 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/7 (看更多)
On Tue, Feb 1, 2011 at 8:58 PM, Matthew Dillon <dillon@apollo.backplane.com> wrote: > ꀠ嘢ne thing I think may be a liability is the knote migration to devfs > ꀠ漑n detach. 啱 think it might be better to implement the knotes in devfs > ꀠ漑nly and make devices use the devfs-supplied structure(s) (probably just > ꀠ氽ev_t, even) for managing knotes. > > ꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀠꀭMatt > I have been contemplating this a bit too -- how to make the filters more stateless (get rid of the lists) or at least make the list handling more implicit. This seems like a reasonable approach. I think I would be in favor of going about a refactor in the way you describe, assuming that we export a new interface/api from devfs for devices with a devfs node and that api is kept seperate from the existing kq api's (I guess it would be a wrapper), which will continue to service files/sockets (and devfs) directly. I think it is already a relatively confusing subsystem and drawing a line there would at least keep it from becoming more complicated. Sam
文章代碼(AID): #1DIPlg_I (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #1DIPlg_I (DFBSD_kernel)