]> git.baikalelectronics.ru Git - kernel.git/commit
block/rnbd-clt: Generate kobject_uevent when the rnbd device state changes
authorMd Haris Iqbal <haris.iqbal@cloud.ionos.com>
Mon, 19 Apr 2021 07:37:19 +0000 (09:37 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Apr 2021 14:59:04 +0000 (08:59 -0600)
commitca4f13472466a899b3be7f85fb350e455649f9d8
treed9d3bdff32ba4123927f63b189146f2980813488
parent7df569cb6974420f7cba716bb118f207219e5e5a
block/rnbd-clt: Generate kobject_uevent when the rnbd device state changes

When an RTRS session state changes, the transport layer generates an event
to RNBD. Then RNBD will change the state of the RNBD client device
accordingly.

This commit add kobject_uevent when the RNBD device state changes. With
this udev rules can be configured to react accordingly.

Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Link: https://lore.kernel.org/r/20210419073722.15351-17-gi-oh.kim@ionos.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-clt-sysfs.c
drivers/block/rnbd/rnbd-clt.c