PERFORCE change 50771 for review

Scott Long scottl at FreeBSD.org
Fri Apr 9 23:55:10 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=50771

Change 50771 by scottl at 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);


More information about the p4-projects mailing list