Date: Fri, 21 Feb 2020 15:28:10 +1100 From: Kubilay Kocak <koobs@FreeBSD.org> To: Hans Petter Selasky <hps@selasky.org>, Adrian Chadd <adrian@freebsd.org>, FreeBSD Net <freebsd-net@freebsd.org> Subject: Re: epoch and ath(4) - what should we be doing? Message-ID: <e8535585-35de-b3fe-46f2-f45d21f580cd@FreeBSD.org> In-Reply-To: <4945cea9-700a-6c4f-1fcc-0447a078f33a@selasky.org> References: <CAJ-VmokqMzB-hGMOEwJ-1R3wsOzrL16jOqC58c34gM1CM00gPQ@mail.gmail.com> <4945cea9-700a-6c4f-1fcc-0447a078f33a@selasky.org>
index | next in thread | previous in thread | raw e-mail
On 20/02/2020 8:16 pm, Hans Petter Selasky wrote: > On 2020-02-20 02:01, Adrian Chadd wrote: >> Questions: >> >> * are these things recursive? > > Yes. > >> * what are the rules around sleeping? I've seen some ... discussions >> that were quite animated around this. > > Any non-sleepable lock is allowed under EPOCH(9). > >> * what should I be doing as an epoch tracker if I could call the >> receive routine from multiple paths. I see a few drivers have a single >> place where they're doing EPOCH_ENTER/EPOCH_EXIT using an epoch >> tracker allocated in the interrupt handler stack, but what if I also >> want to call that receive path from another function path too? Can I >> just stuff an epoch_tracker on the stack and it'll DTRT ? > > Try: > https://reviews.freebsd.org/D23674 > >> * .. is there some updated doc or brain dump somewhere I can read? I'd >> like to go add this to a couple out of tree wifi drivers under >> development so this would make that whole thing much easier. > > Gleb ??? > > --HPS > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" I'd be happy to collate any guidelines, documentation, resource links or otherwise handy information that will help people convert/use to epoch across the tree more effectively in the wiki under an Epoch article Just flick the content my way off list or ping me on IRChome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e8535585-35de-b3fe-46f2-f45d21f580cd>
