Commit 44e68c3f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley

[PATCH] kill ASSERT_LOCK

There's just one user left, and that one is in aha152x.c and thus
clearly bogus..
parent 215a2e7a
...@@ -1379,8 +1379,6 @@ static int aha152x_release(struct Scsi_Host *shpnt) ...@@ -1379,8 +1379,6 @@ static int aha152x_release(struct Scsi_Host *shpnt)
*/ */
static int setup_expected_interrupts(struct Scsi_Host *shpnt) static int setup_expected_interrupts(struct Scsi_Host *shpnt)
{ {
ASSERT_LOCK(&QLOCK,1);
if(CURRENT_SC) { if(CURRENT_SC) {
CURRENT_SC->SCp.phase |= 1 << 16; CURRENT_SC->SCp.phase |= 1 << 16;
......
...@@ -86,21 +86,6 @@ extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE]; ...@@ -86,21 +86,6 @@ extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
#define SCSI_TIMEOUT (2*HZ) #define SCSI_TIMEOUT (2*HZ)
#endif #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 * Use these to separate status msg and our bytes
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment