Commit b71fe4ac authored by Yu Kuai's avatar Yu Kuai Committed by Song Liu

md-bitmap: remove the checking of 'pers->quiesce' from location_store()

After commit 4d27e927344a ("md: don't quiesce in mddev_suspend()"),
there is no need to check 'pers->quiesce' before calling
mddev_suspend().
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230825030956.1527023-5-yukuai1@huaweicloud.com
parent b721e788
...@@ -2352,10 +2352,6 @@ location_store(struct mddev *mddev, const char *buf, size_t len) ...@@ -2352,10 +2352,6 @@ location_store(struct mddev *mddev, const char *buf, size_t len)
if (rv) if (rv)
return rv; return rv;
if (mddev->pers) { if (mddev->pers) {
if (!mddev->pers->quiesce) {
rv = -EBUSY;
goto out;
}
if (mddev->recovery || mddev->sync_thread) { if (mddev->recovery || mddev->sync_thread) {
rv = -EBUSY; rv = -EBUSY;
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment