Re: [PATCH] sd: preserve sysfs updates to max_sectors_kb

Martin K. Petersen
2017-08-30T01:24:55Z

Bart,

> How about asking these users to create a udev rule instead of directly
> modifying max_sectors_kb in sysfs?

I looked at this for a bit last week to see if I could come up with an
elegant way to accommodate values overridden in sysfs and at the same
time honor hardware limits changing. However, it quickly gets messy
since some parameters are under the request_queue and some are scsi_disk
specific. So that involves having override flags several places. Plus
there also the whole re-stacking debacle.

So I think I prefer udev for this.

--
Martin K. Petersen Oracle Linux Engineering