public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kill ASSERT_LOCK
@ 2003-04-21 10:00 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2003-04-21 10:00 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi

There's just one user left, and that one is in aha152x.c and thus
clearly bogus..


--- 1.27/drivers/scsi/aha152x.c	Thu Mar 27 09:31:56 2003
+++ edited/drivers/scsi/aha152x.c	Mon Apr 21 10:08:55 2003
@@ -1379,8 +1379,6 @@
  */ 
 static int setup_expected_interrupts(struct Scsi_Host *shpnt)
 {
-	ASSERT_LOCK(&QLOCK,1);
-
 	if(CURRENT_SC) {
 		CURRENT_SC->SCp.phase |= 1 << 16;
 	
--- 1.73/drivers/scsi/scsi.h	Fri Apr 18 11:58:55 2003
+++ edited/drivers/scsi/scsi.h	Mon Apr 21 10:10:01 2003
@@ -87,21 +87,6 @@
 #endif
 
 /*
- * Used for debugging the new queueing code.  We want to make sure
- * that the lock state is consistent with design.  Only do this in
- * the user space simulator.
- */
-#define ASSERT_LOCK(_LOCK, _COUNT)
-
-#if defined(CONFIG_SMP) && defined(CONFIG_USER_DEBUG)
-#undef ASSERT_LOCK
-#define ASSERT_LOCK(_LOCK,_COUNT)       \
-        { if( (_LOCK)->lock != _COUNT )   \
-                panic("Lock count inconsistent %s %d\n", __FILE__, __LINE__); \
-                                                                                       }
-#endif
-
-/*
  *  Use these to separate status msg and our bytes
  *
  *  These are set by:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-21  9:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-21 10:00 [PATCH] kill ASSERT_LOCK Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox