taskqueue_drain



Hello,

i am working on improving the driver for hauppauge PVR cards
(multimedia/pvrxxx). i just implemented a "fast" interrupt using a
taskqueue ( like the new if_em driver ).

i have a couple of questions:
1. if_em is using taskqueue_enqueue rather than
taskqueue_enqueue_fast. this is contrary to what "man taskqueue"
claims. how come?
2. when my capture-device is closed, i need to drain the taskqueue.
however, taskqueue_drain needs a task as an argument. but i have
queued 2 different tasks on the taskqueue. what to do? i guess they
need to be processed "in order".
3. when and in which version will the "fast" versions of the
taskqueue-functions be released? will it be backported? if i create a
patch and send-pr it, is it likely to be accepted for 6.x?

i am developing this on 6.1-p10, but i imported subr_taskqueue.c and
taskqueue.h from cvs.

thank you for your time,

usleep
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: taskqueue_drain
    ... (multimedia/pvrxxx). ... taskqueue (like the new if_em driver). ... queued 2 different tasks on the taskqueue. ... your interrupt (not just disable.. ...
    (freebsd-hackers)
  • Re: 6.2 SHOWSTOPPER - em completely unusable on 6.2
    ... interrupt handler not getting run, or the taskqueue not getting run. ... At first he thought the interrupt handler of the em driver was ...
    (freebsd-stable)
  • Re: 6.2 SHOWSTOPPER - em completely unusable on 6.2
    ... thing to do here is to figure out if the problem lies with the em interrupt handler not getting run, or the taskqueue not getting run. ... At first he thought the interrupt handler of the em driver was ...
    (freebsd-stable)
  • Re: ad0: WARNING - WRITE_DMA interrupt was seen but timeout fired LBA=21267353
    ... > obviously wrong with your use of the taskqueue (other than what we have ... I dont miss the interrupt, if you look at the code you will se that I ... Now the timeout is 5 secs so on a busy machine our lemming syncer can ...
    (freebsd-current)
  • Re: ad0: WARNING - WRITE_DMA interrupt was seen but timeout fired LBA=21267353
    ... > The WRITE operation was signalled done by the disk by issueing an ... > interrupt and the finished request was put on a taskqueue to have it ... > taskqueue hadn't been executed yet (it will wait one ome timeout period ... WARNING - WRITE_DMA interrupt was seen but taskqueue stalled LBA=... ...
    (freebsd-current)