mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: linux-kernel@vger.kernel.org
Subject: Using tq_immediate
Date: Mon, 17 Jun 2002 16:54:17 +0100	[thread overview]
Message-ID: <20020617165417.Y9435@parcelfarce.linux.theplanet.co.uk> (raw)


If you want to use tq_immediate, here's the current way to do it:

        queue_task(&bcs->tqueue, &tq_immediate);
        mark_bh(IMMEDIATE_BH);

There's about 80 drivers in the tree which do this, FYI.  This sucks,
because it sets up a linkage between task queues and bottom halves.
If you, like I, wish for bottom halves to go away, we're going to have
to change this.  Some people want to eradicate task queues too -- and
while I think this is a fine idea, I can't see it happening in the next
week or so.

My proposal is:

	queue_task(&bcs->tqueue, &tq_immediate);
	wake_immediate_queue();

While this is a little magic (there's no obvious connection between the
two), and it's special-purpose (no equivalent for other task queues),
I think it's an acceptable compromise that doesn't require taking out
all 80 drivers and shooting them.

-- 
Revolutions do not require corporate support.

                 reply	other threads:[~2002-06-17 15:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020617165417.Y9435@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®