From: Mukesh Ojha <quic_mojha@quicinc.com>
To: Johannes Berg <johannes@sipsolutions.net>,
Greg KH <gregkh@linuxfoundation.org>
Cc: <rafael@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] devcoredump: Send uevent once devcd is ready
Date: Tue, 7 Nov 2023 16:31:42 +0530 [thread overview]
Message-ID: <57d38bd4-d9ea-6ce4-b7c1-1a05097c7338@quicinc.com> (raw)
In-Reply-To: <c4abc49c31643baa34bf889d689e8c587c28da54.camel@sipsolutions.net>
On 11/7/2023 1:07 AM, Johannes Berg wrote:
> On Mon, 2023-11-06 at 20:36 +0100, Greg KH wrote:
>> On Mon, Nov 06, 2023 at 07:55:35PM +0530, Mukesh Ojha wrote:
>>> dev_coredumpm() creates a devcoredump device and adds it
>>> to the core kernel framework which eventually end up
>>> sending uevent to the user space and later creates a
>>> symbolic link to the failed device. An application
>>> running in userspace may be interested in this symbolic
>>> link to get the name of the failed device.
>>>
>>> In a issue scenario, once uevent sent to the user space
>>> it start reading '/sys/class/devcoredump/devcdX/failing_device'
>>> to get the actual name of the device which might not been
>>> created and it is in its path of creation.
>>>
>>> To fix this, suppress sending uevent till the failing device
>>> symbolic link gets created and send uevent once symbolic
>>> link is created successfully.
>>>
>>> Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
>>
>> What commit id does this fix?
>>
>
> I guess the original introduction.
>
>> What in-kernel driver does this affect
>> that is using devcoredump?
>>
>
> All of them really, it's really about how fast userspace is to access it
> after the event.
>
> Looks fine to me, FWIW, but a Fixes tag wouldn't hurt.
Thanks, will add the Fixes tag.
-Mukesh
>
> johannes
prev parent reply other threads:[~2023-11-07 11:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-06 14:25 Mukesh Ojha
2023-11-06 19:36 ` Greg KH
2023-11-06 19:37 ` Johannes Berg
2023-11-07 11:01 ` Mukesh Ojha [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=57d38bd4-d9ea-6ce4-b7c1-1a05097c7338@quicinc.com \
--to=quic_mojha@quicinc.com \
--cc=gregkh@linuxfoundation.org \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@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®