public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: Re: [PATCH v2] offchannel: introduce new offchannel module
Date: Mon, 06 Dec 2021 11:01:49 -0800	[thread overview]
Message-ID: <6a4d79d72167d4916fa7a52dc7486fe10bdcf240.camel@gmail.com> (raw)
In-Reply-To: 3b9d8507-3ae5-322d-06b0-92a7c7807196@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]

On Mon, 2021-12-06 at 12:48 -0600, Denis Kenzior wrote:
> Hi James,
> 
> > Even with this though I don't see a point of waiting for the ACK
> > since
> > the kernel will send cancel ROC. The ACK callback for this would
> > have
> > no purpose AFAIK.
> > 
> 
> If you always want to wait for the cancel event, then I would
> concur.  Question 
> is whether the kernel would always guarantee that this is sent.  I
> guess we'll 
> find out :)
> 
> > 
> > Yes, I need to only cancel conditionally. I don't see why we need
> > to
> > invoke destroy here though? I would rather keep destroy() in one
> > location, in the work done callback.
> 
> Mostly to be nice to the consumer of these methods.  They may want to
> assume 
> that cancel succeeds synchronously and that the destroy method is
> invoked right 
> away.  For example, this may be useful if the destroy method
> manipulates some 
> data hanging off the main object and the main object is about to be
> destroyed 
> (hence the cancel call on the ongoing request).

Ok makes sense. I guess in this case we can just call then NULL destroy
and all other cases it will still happen in the work done callback.
I've already sent v3 but I'll update this in the next round.

> 
> Regards,
> -Denis


             reply	other threads:[~2021-12-06 19:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-06 19:01 James Prestwood [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-06 18:48 [PATCH v2] offchannel: introduce new offchannel module Denis Kenzior
2021-12-06 18:03 James Prestwood
2021-12-01 18:06 Denis Kenzior
2021-11-30 22:06 Paul Menzel
2021-11-30 21:49 James Prestwood

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=6a4d79d72167d4916fa7a52dc7486fe10bdcf240.camel@gmail.com \
    --to=iwd@lists.linux.dev \
    /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