mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: linux1394-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/5] firewire: core/ohci: defer cancellation callbacks to workqueue
Date: Fri, 9 Oct 2026 06:53:33 +0900	[thread overview]
Message-ID: <20261008215333.GA216733@sakamocchi.jp> (raw)
In-Reply-To: <20261007093235.175742-1-o-takashi@sakamocchi.jp>

On Wed, Oct 07, 2026 at 06:32:30PM +0900, Takashi Sakamoto wrote:
> Hi,
> 
> This series is take 2 of the previous one[1].
> 
> The current implementation invokes both packet and transaction callbacks
> from a workqueue when they complete normally[2][3]. In contrast, the
> cancellation paths invoke the callbacks synchronously while cancelling
> them.
> 
> Although the cancellation paths are guaranteed to run in process context,
> invoking the callbacks synchronously is undesirable because it makes
> callback execution depends on the context in which cancellation is
> executed.
> 
> This series defers the callbacks to a workqueue when cancelling the
> packets and transactions, so that callbacks are invoked from a workqueue
> in both normal completion and cancellation paths.
> 
> This also allows local AT packets to be cancelled. Local packets currently
> use a separate path and cannot be cancelled once queued. Make them use
> the same cancellation mechanism as remote packets.
> 
> Changes from v1:
> * Use prefixed local variable in the issued macro
> 
> [1] [PATCH 0/5] firewire: core/ohci: defer cancellation callbacks to workqueue
> https://lore.kernel.org/lkml/20261005112544.240552-1-o-takashi@sakamocchi.jp/
> [2] [PATCH 0/5] firewire: ohci: invoke all AT packet callbacks from a workqueue
> https://lore.kernel.org/lkml/20260919115017.859169-1-o-takashi@sakamocchi.jp/
> [3] [PATCH 0/3] firewire: core: invoke transaction callbacks in process context
> https://lore.kernel.org/lkml/20260921031931.287429-1-o-takashi@sakamocchi.jp/
> 
> Takashi Sakamoto (5):
>   firewire: core: expand close_transaction() into its callers and remove
>     it
>   firewire: ohci: schedule callback on workqueue when cancelling AT
>     request packet
>   firewire: ohci: allow AT local packet cancellation
>   firewire: core: schedule callback when cancelling pending transactions
>   firewire: core: fulfill kerneldoc for fw_cancel_transaction()
> 
>  drivers/firewire/core-transaction.c | 101 ++++++++++++++--------------
>  drivers/firewire/ohci.c             |  57 ++++++++++++----
>  2 files changed, 93 insertions(+), 65 deletions(-)

Applied fo for-next branch.


Regards

Takashi Sakamoto

      parent reply	other threads:[~2026-10-08 21:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-07  9:32 Takashi Sakamoto
2026-10-07  9:32 ` [PATCH v2 1/5] firewire: core: expand close_transaction() into its callers and remove it Takashi Sakamoto
2026-10-07  9:32 ` [PATCH v2 2/5] firewire: ohci: schedule callback on workqueue when cancelling AT request packet Takashi Sakamoto
2026-10-07  9:32 ` [PATCH v2 3/5] firewire: ohci: allow AT local packet cancellation Takashi Sakamoto
2026-10-07  9:32 ` [PATCH v2 4/5] firewire: core: schedule callback when cancelling pending transactions Takashi Sakamoto
2026-10-07  9:32 ` [PATCH v2 5/5] firewire: core: fulfill kerneldoc for fw_cancel_transaction() Takashi Sakamoto
2026-10-08 21:53 ` Takashi Sakamoto [this message]

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=20261008215333.GA216733@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    /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®