Re: [PATCH v2 1/7] drivers/base: Fix a race condition in the device probing code

2018-10-18 Thread Bart Van Assche
On Thu, 2018-10-18 at 07:10 +0200, Greg Kroah-Hartman wrote: > > diff --git a/drivers/base/dd.c b/drivers/base/dd.c > > index edfc9f0b1180..b4212154a94b 100644 > > --- a/drivers/base/dd.c > > +++ b/drivers/base/dd.c > > @@ -645,6 +645,14 @@ int driver_probe_device(struct device_driver *drv, > >

Re: [PATCH v2 1/7] drivers/base: Fix a race condition in the device probing code

2018-10-17 Thread Greg Kroah-Hartman
On Wed, Oct 17, 2018 at 04:40:00PM -0700, Bart Van Assche wrote: > This patch avoids that complaints similar to the following appear in the > system log: > > sysfs: cannot create duplicate filename > '/devices/pseudo_0/adapter0/host3/target3:0:0/3:0:0:133/driver' > > Cc: Lee Duncan > Cc:

[PATCH v2 1/7] drivers/base: Fix a race condition in the device probing code

2018-10-17 Thread Bart Van Assche
This patch avoids that complaints similar to the following appear in the system log: sysfs: cannot create duplicate filename '/devices/pseudo_0/adapter0/host3/target3:0:0/3:0:0:133/driver' Cc: Lee Duncan Cc: Hannes Reinecke Cc: Luis Chamberlain Cc: Johannes Thumshirn Cc: Christoph Hellwig