md: get sysfs entry after redundancy attr group create
authorJunxiao Bi <junxiao.bi@oracle.com>
Wed, 5 Aug 2020 00:27:18 +0000 (17:27 -0700)
committerSong Liu <songliubraving@fb.com>
Wed, 5 Aug 2020 23:07:39 +0000 (16:07 -0700)
commite8efa9b88e3c20a20ff34bb33e2e94bf6896016a
tree0e5e30b21f188bbe322080f7fa266b91b4a9ebad
parentf59589fc89665102923725e80e12f782d5f74f67
md: get sysfs entry after redundancy attr group create

"sync_completed" and "degraded" belongs to redundancy attr group,
it was not exist yet when md device was created.

Reported-by: kernel test robot <rong.a.chen@intel.com>
Fixes: e1a86dbbbd6a ("md: fix deadlock causing by sysfs_notify")
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md.c