]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: ignore non-nbd ioctl's
authorJosef Bacik <josef@toxicpanda.com>
Sat, 6 May 2017 02:25:18 +0000 (22:25 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 14:56:05 +0000 (08:56 -0600)
commit150cd7ad9c93c250352d41cb2af176a02ee5f11f
tree750d1bbc7d15cb78db819c5d8bb99088fa1da21d
parent1924c44b3db4d3df1771257f79c6d95f27ae6b07
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>
drivers/block/nbd.c