The block limits exports the number of write hints, so set this limit if
the device reports support for the lifetime hints. Not only does this
inform the user of which hints are possible, it also allows scsi devices
supporting the feature to utilize the full range through raw block
device direct-io.
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
sd_config_protection(sdkp, &lim);
}
+ lim.max_write_hints = sdkp->permanent_stream_count;
+
/*
* We now have all cache related info, determine how we deal
* with flush requests.