sun4d: missing spin_lock_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

It appears the only one using this is the sun4d 

The patch clears up:
scsi0 : Sparc ESP236-FAST
BUG: spinlock bad magic on CPU#0, swapper/1
 lock: f0f00800, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
...

Thanx
  Ray

--- linux-2.6.17-rc6.orig/arch/sparc/mm/io-unit.c	Tue Jun  6 00:57:02 2006
+++ linux-2.6.17-rc6/arch/sparc/mm/io-unit.c	Mon Jun 12 04:25:40 2006
@@ -65,6 +65,7 @@
 	
 	sbus->iommu = (struct iommu_struct *)iounit;
 	iounit->page_table = xpt;
+	spin_lock_init(&iounit->lock);
 	
 	for (xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t);
 	     xpt < xptend;)

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux