diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-05-06 04:25:18 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-25 16:56:05 +0200 |
commit | 1dae69bedeeca0b57e441eae491fbd38049c0b47 (patch) | |
tree | 750d1bbc7d15cb78db819c5d8bb99088fa1da21d /block/blk-core.c | |
parent | bsg-lib: don't free job in bsg_prepare_job (diff) | |
download | linux-1dae69bedeeca0b57e441eae491fbd38049c0b47.tar.xz linux-1dae69bedeeca0b57e441eae491fbd38049c0b47.zip |
nbd: ignore non-nbd ioctl's
In testing we noticed that nbd would spew if you ran a fio job against
the raw device itself. This is because fio calls a block device
specific ioctl, however the block layer will first pass this back to the
driver ioctl handler in case the driver wants to do something special.
Since the device was setup using netlink this caused us to spew every
time fio called this ioctl. Since we don't have special handling, just
error out for any non-nbd specific ioctl's that come in. This fixes the
spew.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions