[dm-devel] [PATCH v2] block: disallow changing max_sectors_kb on a request stacking device

Martin K. Petersen martin.petersen at oracle.com
Tue Nov 8 02:46:24 UTC 2016


>>>>> "Mike" == Mike Snitzer <snitzer at redhat.com> writes:

Mike,

Mike> You're suggesting that when the DM multipath device's limits are
Mike> stacked up from the underlying devices: cap the mpath's
Mike> max_hw_sectors to the underlying devices' max_sectors?

That will break SG_IO, firmware upgrades, etc. (things you probably
shouldn't do on the MP device in the first place but which users often
do).

However, doesn't it make more sense to tweak limits on DM device instead
of the underlying ones? It seems a bit counter-intuitive to me to change
max_sectors_kb on a different device than the one where the filesystem
whose max I/O size you want to change is located.

I guess this brings us back to the desire to be able to restack the
limits at will when something changes somewhere...

-- 
Martin K. Petersen	Oracle Linux Engineering




More information about the dm-devel mailing list