Skip to contentSkip to conversation

nbd: ignore non-nbd ioctl's

PATCH Josef Bacik 2 participants 2 messages Sep 20, 2017 1 message not in the archive Block layer

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · Josef Bacik

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.

Jens,

This fell through the cracks, could you pick it up, thanks,

Josef

maintainer
#2 lore raw
Quoted 10 lines · Josef Bacik
Quoted 9 lines · Josef Bacik

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.

Quoted 5 lines
Quoted 1 line

Jens,

This fell through the cracks, could you pick it up, thanks,

Sure, applied.

Signature · 1 line
Jens Axboe