From: hch@lst.de (Christoph Hellwig)
Subject: [PATCHv2] nvme/pci: Fix hot removal during error handling
Date: Mon, 15 Oct 2018 11:44:07 +0200 [thread overview]
Message-ID: <20181015094407.GA28869@lst.de> (raw)
In-Reply-To: <97d2a54a-0c0d-f561-23c5-cb10d77ce5f0@grimberg.me>
On Fri, Oct 05, 2018@01:24:24PM -0700, Sagi Grimberg wrote:
>
>>>> - flush_work(&dev->ctrl.reset_work);
>>>> + cancel_work_sync(&dev->ctrl.reset_work);
>>>
>>> Does reset_work requeue itself? if not I don't fully understand
>>> this change.
>>
>> You'd have to abuse the state machine if reset_work wanted to requeue
>> itself, so that shouldn't happen.
>>
>> We could just leave it as a flush work, and that should be okay too. The
>> cancel_work_sync should accomplish the same, but also prevent the work
>> from even starting if it just so happens to have been pending in a
>> work queue, but that seems very unlikely.
>
> I don't mind, but was looking to understand what it is trying to
> achieve. If you do change that, would be a good idea to include it in
> the change log
Keith, any plans to resend? Or should I take this one after all?
prev parent reply other threads:[~2018-10-15 9:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-05 15:09 [PATCHv2] nvme/pci: Fix hot removal during error handling Keith Busch
2018-10-05 18:14 ` Sagi Grimberg
2018-10-05 19:51 ` Keith Busch
2018-10-05 20:24 ` Sagi Grimberg
2018-10-15 9:44 ` Christoph Hellwig [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=20181015094407.GA28869@lst.de \
--to=hch@lst.de \
/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