Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 2015 07:40:19 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r288702 - stable/10/sys/cam
Message-ID:  <201510050740.t957eJJu082011@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Oct  5 07:40:18 2015
New Revision: 288702
URL: https://svnweb.freebsd.org/changeset/base/288702

Log:
  MFC r281531 (by asomers):
  Initialize async_arg_ptr in xpt_async when called with async_code
  AC_ADVINFO_CHANGED.
  
  Without this change, newly inserted hard disks won't always have their
  physical path device nodes created.  The problem reproduces most readily
  when attaching a large number of disks at once.

Modified:
  stable/10/sys/cam/cam_xpt.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/cam_xpt.c
==============================================================================
--- stable/10/sys/cam/cam_xpt.c	Mon Oct  5 07:38:22 2015	(r288701)
+++ stable/10/sys/cam/cam_xpt.c	Mon Oct  5 07:40:18 2015	(r288702)
@@ -4268,8 +4268,10 @@ xpt_async(u_int32_t async_code, struct c
 		}
 		memcpy(ccb->casync.async_arg_ptr, async_arg, size);
 		ccb->casync.async_arg_size = size;
-	} else if (size < 0)
+	} else if (size < 0) {
+		ccb->casync.async_arg_ptr = async_arg;
 		ccb->casync.async_arg_size = size;
+	}
 	if (path->device != NULL && path->device->lun_id != CAM_LUN_WILDCARD)
 		xpt_freeze_devq(path, 1);
 	else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510050740.t957eJJu082011>