Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Apr 2004 23:55:09 -0700 (PDT)
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 50771 for review
Message-ID:  <200404100655.i3A6t9nS090782@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=50771

Change 50771 by scottl@scottl-junior-camlock on 2004/04/09 23:54:15

	Lock Giant around the call to xpt_action in the work thread.
	Simple tests seem to kinda indicate that this actually works!

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_probe.c#4 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_probe.c#4 (text+ko) ====

@@ -149,7 +149,9 @@
 
 		switch (work->command) {
 		case WORK_EXECUTE_CCB:
+			mtx_lock(&Giant);
 			xpt_action((union ccb *)work->data);
+			mtx_unlock(&Giant);
 			break;
 		default:
 			panic("Unknown CAM work item %d\n", work->command);



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