mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: zhenguo yao <yaozhenguo1@gmail.com>
Cc: oleg@redhat.com, linux-kernel@vger.kernel.org, yaozhenguo@jd.com
Subject: Re: [PATCH] task_work: return -EBUSY when adding same work
Date: Sun, 11 Jul 2021 20:44:20 -0600	[thread overview]
Message-ID: <db2410e2-1f1a-b396-10d1-1df3ec061b78@kernel.dk> (raw)
In-Reply-To: <CA+WzARnFgohHZ=BhL4OaCagB_c1uB6a=Bv7vM_zRUJeANHksEg@mail.gmail.com>

On 7/11/21 8:13 PM, zhenguo yao wrote:
> Yes I hit this condition.  The caller is queue_task_work in
> arch/x86/kernel/cpu/mce/core.c.
> It is really a BUG. I have submitted another patch to fix it:
> https://lkml.org/lkml/2021/7/9/186.

That patch seems broken, what happens if mce_kill_me is added already,
but it isn't the first work item in the list?

-- 
Jens Axboe


  parent reply	other threads:[~2021-07-12  2:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09 12:27 yaozhenguo
2021-07-09 14:18 ` Jens Axboe
     [not found]   ` <CA+WzARnFgohHZ=BhL4OaCagB_c1uB6a=Bv7vM_zRUJeANHksEg@mail.gmail.com>
2021-07-12  2:44     ` Jens Axboe [this message]
2021-07-12  3:45       ` zhenguo yao
2021-07-12  9:08       ` zhenguo yao
2021-07-13 10:41   ` David Laight
2021-07-13 20:22     ` Jens Axboe

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=db2410e2-1f1a-b396-10d1-1df3ec061b78@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=yaozhenguo1@gmail.com \
    --cc=yaozhenguo@jd.com \
    /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

Powered by JetHome