Re: [PATCH 05/35] monitor: add uevent filters
From: Hannes Reinecke <hare@suse.de>
Date: 2021-02-04 06:59:00
On 1/26/21 9:32 PM, mwilck@suse.com wrote:
quoted hunk ↗ jump to hunk
From: Martin Wilck <redacted> Signed-off-by: Martin Wilck <redacted> --- monitor.c | 4 ++++ 1 file changed, 4 insertions(+)diff --git a/monitor.c b/monitor.c index 63e26bc..a6c8905 100644 --- a/monitor.c +++ b/monitor.c@@ -58,6 +58,10 @@ static int create_udev_monitor(struct udev_monitor **pmon) if (!mon) return errno ? -errno : -ENOMEM; + /* Add match for NVMe controller devices */ + ret = udev_monitor_filter_add_match_subsystem_devtype(mon, "nvme", NULL); + /* Add match for fc_udev_device */ + ret = udev_monitor_filter_add_match_subsystem_devtype(mon, "fc", NULL); /* * This fails in unpriviliged mode. Use the same value as udevd. * We may able to decrease this buffer size later.
I guess you could merge all these five patches together; no need to keep them separate. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme