]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: avoid duplicated 'ADD' uevents
authorCornelia Huck <cohuck@redhat.com>
Fri, 27 Mar 2020 12:45:02 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:01 +0000 (16:33 +0200)
commit48798de8889eff05259174133b683074c89bcdeb
tree18a72616e50ad284983dceab2d4952b9f487682e
parent9539e3b06e9be937dcffb54ab3086f7a6fa6441d
s390/cio: avoid duplicated 'ADD' uevents

[ Upstream commit 36331336ffcbceb6f7ccdd2bf76f5b622dd25cd3 ]

The common I/O layer delays the ADD uevent for subchannels and
delegates generating this uevent to the individual subchannel
drivers. The io_subchannel driver will do so when the associated
ccw_device has been registered -- but unconditionally, so more
ADD uevents will be generated if a subchannel has been unbound
from the io_subchannel driver and later rebound.

To fix this, only generate the ADD event if uevents were still
suppressed for the device.

Fixes: d77319941523 ("s390: cio: Delay uevents for subchannels")
Message-Id: <20200327124503.9794-2-cohuck@redhat.com>
Reported-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/cio/device.c