diff options
author | Liu Bo <bo.liu@linux.alibaba.com> | 2018-07-05 22:07:13 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-07-09 18:07:54 +0300 |
commit | 00a8cdb84fcb64c7f9f1061298ff676a96dfaf41 (patch) | |
tree | bad084e237984c1e5bfd101e3cbd803740af6159 /block | |
parent | ca47e8c72ae141587cabf3dab693f6754d8c416b (diff) | |
download | linux-00a8cdb84fcb64c7f9f1061298ff676a96dfaf41.tar.xz |
null_blk: remove NULLB_DEV_FL_CONFIGURED on turning off nullb device
Currently mbps knob could only be set once before switching power knob to
on, after power knob has been set at least once, there is no way to set
mbps knob again due to -EBUSY.
As nullb is mainly used for testing, in order to make it flexible, this
removes the flag NULLB_DEV_FL_CONFIGURED so that mbps knob can be reset
when power knob is off, e.g.
echo 0 > /config/nullb/a/power
echo 40 > /config/nullb/a/mbps
echo 1 > /config/nullb/a/power
So does other knobs under /config/nullb/a.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions