Commit 655a2be8 authored by Yu Kuai's avatar Yu Kuai
Browse files

block: warn once for each partition in bio_check_ro()

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8HQ3W



--------------------------------

If underlying disk of raid/dm is set to read only, then each write will
trigger a warn in bio_check_ro(), cause message storm.

Fix it by generating such warn only once for each partition.

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
parent f4801a05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment