Commit 06d779b8 authored by Li Lingfeng's avatar Li Lingfeng
Browse files

block: Record writing and mounting regardless of whether bdev_allow_write_mounted is set

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8S3GW


CVE: NA

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

Introduce bd_mounted to record the state of mount.
The count of bd_writers and bd_mounted can have other uses and they
doesn't block writes when bdev_allow_write_mounted is not set, so remove
the restriction for recording them.

Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent ea6de9f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment