md-cluster: check for timeout while a new disk adding
authorDenis Plotnikov <den-plotnikov@yandex-team.ru>
Mon, 25 Sep 2023 12:59:40 +0000 (15:59 +0300)
committerSong Liu <song@kernel.org>
Thu, 12 Oct 2023 16:16:19 +0000 (09:16 -0700)
commit1bbe254e4336c0944dd4fb6f0b8c9665b81de50f
treec3653765f106b2b11729da343bdeafad9697fe76
parent9164e4a5af9c5587f8fdddeee30c615d21676e92
md-cluster: check for timeout while a new disk adding

A new disk adding may end up with timeout and a new disk won't be added.
Add returning the error in that case.

Found by Linux Verification Center (linuxtesting.org) with SVACE

Signed-off-by: Denis Plotnikov <den-plotnikov@yandex-team.ru>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230925125940.1542506-1-den-plotnikov@yandex-team.ru
drivers/md/md-cluster.c