svn commit: r277810 - stable/10/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Tue Jan 27 19:41:25 UTC 2015
Author: mav
Date: Tue Jan 27 19:41:24 2015
New Revision: 277810
URL: https://svnweb.freebsd.org/changeset/base/277810
Log:
MFC r277647: Fix wrong LUN reference in XCOPY block-to-block operation.
This could cause data corruption due to accessing wrong LUN in case of
retries on write errors. Failed writes were retried to read LUN.
Modified:
stable/10/sys/cam/ctl/ctl_tpc.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/cam/ctl/ctl_tpc.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl_tpc.c Tue Jan 27 19:40:08 2015 (r277809)
+++ stable/10/sys/cam/ctl/ctl_tpc.c Tue Jan 27 19:41:24 2015 (r277810)
@@ -916,7 +916,7 @@ tpc_process_b2b(struct tpc_list *list)
/*control*/ 0);
tiow->io->io_hdr.retries = 3;
tiow->lun = dl;
- tiow->io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = tior;
+ tiow->io->io_hdr.ctl_private[CTL_PRIV_FRONTEND].ptr = tiow;
TAILQ_INSERT_TAIL(&tior->run, tiow, rlinks);
TAILQ_INSERT_TAIL(prun, tior, rlinks);
More information about the svn-src-all
mailing list