All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
To: Jes Sorensen <jes@trained-monkey.org>
Cc: Mateusz Grzonka <mateusz.grzonka@intel.com>, linux-raid@vger.kernel.org
Subject: Re: [PATCH v4 1/2] Mdmonitor: Improve udev event handling
Date: Mon, 11 Sep 2023 16:18:20 +0200	[thread overview]
Message-ID: <20230911161820.00007e6f@linux.intel.com> (raw)
In-Reply-To: <52f43128-6f68-49fd-9b25-c3026d007d83@trained-monkey.org>

On Fri, 1 Sep 2023 11:35:57 -0400
Jes Sorensen <jes@trained-monkey.org> wrote:

> On 7/5/23 10:50, Mateusz Grzonka wrote:
> > Mdmonitor is waiting for udev queue to become empty.
> > Even if the queue becomes empty, udev might still be processing last event.
> > However we want to wait and wake up mdmonitor when udev finished
> > processing events..
> > 
> > Also, the udev queue interface is considered legacy and should not be
> > used outside of udev.
> > 
> > Use udev monitor instead, and wake up mdmonitor on every event triggered
> > by udev for md block device.
> > 
> > We need to generate more change events from kernel, because they are
> > missing in some situations, for example, when rebuild started.
> > This will be addressed in a separate patch.
> > 
> > Move udev specific code into separate functions, and place them in udev.c
> > file. Also move use_udev() logic from lib.c into newly created file.
> > 
> > Signed-off-by: Mateusz Grzonka <mateusz.grzonka@intel.com>  
> 
> Generally looks good to me.
> 
> One question, is there a minimum version of udev required for this to
> work or has it been around long enough that we don't need to worry?
> 
> Thanks,
> Jes
> 
> 

Hi Jes,
We don't need to worry. I checked one random commit (25e773e) from 2014 and
udev_monitor stuff is there.

Thanks,
Mariusz

  reply	other threads:[~2023-09-11 22:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-05 14:50 [PATCH v4 1/2] Mdmonitor: Improve udev event handling Mateusz Grzonka
2023-09-01 15:35 ` Jes Sorensen
2023-09-11 14:18   ` Mariusz Tkaczyk [this message]
2023-10-26 21:35     ` Jes Sorensen

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=20230911161820.00007e6f@linux.intel.com \
    --to=mariusz.tkaczyk@linux.intel.com \
    --cc=jes@trained-monkey.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=mateusz.grzonka@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.