Re: [Nbd] [PATCH] nbd: set the max segment size to UINT_MAX

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

 



> On 17 Apr 2017, at 15:44, Josef Bacik <josef@xxxxxxxxxxxxxx> wrote:
> 
> NBD doesn't care about limiting the segment size, let the user push the
> largest bio's they want.  This allows us to control the request size
> solely through max_sectors_kb.

I'm a bit lost around the various knobs in the kernel for maximum block
sizes, but note that the NBD protocol is (with an extension, soon
to be made mainstream by the looks of it) capable of negotiating
block size minima, maxima and preferred sizes - see here:

https://github.com/NetworkBlockDevice/nbd/blob/extension-info/doc/proto.md#block-size-constraints

These are server block sizes (obviously) which would normally be passed
from userland client to kernel client via an ioctl. I suspect such
ioctls may not be implemented at the moment, and kernel support for
them would be much appreciated.

-- 
Alex Bligh








[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