Re: [PATCH] null_blk: remove NULLB_DEV_FL_CONFIGURED on turning off nullb device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/5/18 1:07 PM, Liu Bo wrote:
> 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.

Applied for 4.19, thanks.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux