summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-05-04 00:31:25 -0700
committerJens Axboe <axboe@fb.com>2017-05-04 08:23:16 -0600
commitc7e4145ae11b45931f117aa64c26be6cf58302df (patch)
treedd19aadf9aeca8a7ea558c8de30e9f02e21e8aff /net
parent1a435111f8eb30b370e3891caebb1d1ca61f41ec (diff)
downloadlinux-c7e4145ae11b45931f117aa64c26be6cf58302df.tar.bz2
blk-mq-debugfs: error on long write to queue "state" file
blk_queue_flags_store() currently truncates and returns a short write if the operation being written is too long. This can give us weird results, like here: $ echo "run bar" echo: write error: invalid argument $ dmesg [ 1103.075435] blk_queue_flags_store: unsupported operation bar. Use either 'run' or 'start' Instead, return an error if the user does this. While we're here, make the argument names consistent with everywhere else in this file. Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions