Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d8da4dc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: Adjust DBD setting in mode sense for caching mode page per LLD"

parents 8b4d0e1b 1c4c6566
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2332,6 +2332,7 @@ sd_read_cache_type(struct scsi_disk *sdkp, unsigned char *buffer)
{
	int len = 0, res;
	struct scsi_device *sdp = sdkp->device;
	struct Scsi_Host *host = sdp->host;

	int dbd;
	int modepage;
@@ -2363,6 +2364,9 @@ sd_read_cache_type(struct scsi_disk *sdkp, unsigned char *buffer)
		dbd = 8;
	} else {
		modepage = 8;
		if (host->set_dbd_for_caching)
			dbd = 8;
		else
			dbd = 0;
	}

+7 −0
Original line number Diff line number Diff line
@@ -685,6 +685,13 @@ struct Scsi_Host {
	 * units along with standard LUs.
	 */
	unsigned report_wlus:1;

	/*
	 * Set "DBD" field in mode_sense caching mode page in case it is
	 * mandatory by LLD standard.
	 */
	unsigned set_dbd_for_caching:1;

	/*
	 * Optional work queue to be utilized by the transport
	 */