svn commit: r312582 - stable/11/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Sat Jan 21 08:39:02 UTC 2017
Author: mav
Date: Sat Jan 21 08:39:01 2017
New Revision: 312582
URL: https://svnweb.freebsd.org/changeset/base/312582
Log:
MFC r310646: Do not update "saved" mode page on every MODE SELECT.
We do not have non-volatile memory to really save those values, so we
neither report nor support this capability. Also saved mode pages are
not replicated between HA peers now.
Modified:
stable/11/sys/cam/ctl/ctl.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/cam/ctl/ctl.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl.c Sat Jan 21 08:37:53 2017 (r312581)
+++ stable/11/sys/cam/ctl/ctl.c Sat Jan 21 08:39:01 2017 (r312582)
@@ -5833,7 +5833,7 @@ ctl_default_page_handler(struct ctl_scsi
struct ctl_page_index *page_index, uint8_t *page_ptr)
{
struct ctl_lun *lun;
- uint8_t *current_cp, *saved_cp;
+ uint8_t *current_cp;
int set_ua;
uint32_t initidx;
@@ -5843,13 +5843,10 @@ ctl_default_page_handler(struct ctl_scsi
current_cp = (page_index->page_data + (page_index->page_len *
CTL_PAGE_CURRENT));
- saved_cp = (page_index->page_data + (page_index->page_len *
- CTL_PAGE_SAVED));
mtx_lock(&lun->lun_lock);
if (memcmp(current_cp, page_ptr, page_index->page_len)) {
memcpy(current_cp, page_ptr, page_index->page_len);
- memcpy(saved_cp, page_ptr, page_index->page_len);
set_ua = 1;
}
if (set_ua != 0)
More information about the svn-src-stable
mailing list