scsi uodate to remove io_request_lock
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Evgeniy Polyakov
Quoted 2 lines
You still have a bit of work to do :-)
Yep, done.
So, please check and apply.
Can you re-do the diff against your previous diff, I've already applied it to my tree..
Linus
Quoted 2 lines · On Mon, 28 Jan 2002 17:46:49 -0800 (PST) Linus Torvalds…
Can you re-do the diff against your previous diff, I've already applied it to my tree..
It was simple cleanup.
Thanks.
Quoted 1 line
Linus
Evgeniy Polyakov ( s0mbre ).
Linux/my_code/my_kernel_patches/scsi.diff renamed from Linux/my_code/my_kernel_patches/__scsi.diff +10 -16
@@ -1,5 +1,3 @@ -Only in ./drivers/scsi/: .depend -Only in ./drivers/scsi/: .hosts.c.swp diff -ur ./drivers/scsi/3w-xxxx.c ./drivers/scsi/3w-xxxx.c --- ./drivers/scsi/3w-xxxx.c Mon Jan 28 13:45:33 2002 +++ ./drivers/scsi/3w-xxxx.c Mon Jan 28 13:47:33 2002
@@ -55,7 +53,6 @@ spin_lock(&tw_dev->tw_lock); tw_dev->num_resets++; -Only in ./drivers/scsi/: 3w-xxxx.c~ diff -ur ./drivers/scsi/53c7,8xx.c ./drivers/scsi/53c7,8xx.c --- ./drivers/scsi/53c7,8xx.c Mon Jan 28 13:45:33 2002 +++ ./drivers/scsi/53c7,8xx.c Mon Jan 28 13:28:17 2002
@@ -477,7 +474,6 @@ } int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *)) -Only in ./drivers/scsi/aic7xxx: .depend diff -ur ./drivers/scsi/atp870u.c ./drivers/scsi/atp870u.c --- ./drivers/scsi/atp870u.c Mon Jan 28 13:45:33 2002 +++ ./drivers/scsi/atp870u.c Mon Jan 28 13:36:46 2002
@@ -1035,10 +1031,10 @@ -#define GDTH_UNLOCK_SCSI_DONE(flags) spin_unlock_irqrestore(&io_request_lock,flags) -#define GDTH_LOCK_SCSI_DOCMD() spin_lock_irq(&io_request_lock) -#define GDTH_UNLOCK_SCSI_DOCMD() spin_unlock_irq(&io_request_lock) -+#define GDTH_LOCK_SCSI_DONE(dev, flags) spin_lock_irqsave(((struct Scsi_Host *)dev->host_lock),flags) -+#define GDTH_UNLOCK_SCSI_DONE(flags) spin_unlock_irqrestore(((struct Scsi_Host *)dev->host_lock),flags) -+#define GDTH_LOCK_SCSI_DOCMD(dev) spin_lock_irq(((struct Scsi_Host *)dev->host_lock)) -+#define GDTH_UNLOCK_SCSI_DOCMD(dev) spin_unlock_irq(((struct Scsi_Host *)dev->host_lock)) ++#define GDTH_LOCK_SCSI_DONE(dev, flags) spin_lock_irqsave(dev->host_lock,flags) ++#define GDTH_UNLOCK_SCSI_DONE(flags) spin_unlock_irqrestore(dev->host_lock,flags) ++#define GDTH_LOCK_SCSI_DOCMD(dev) spin_lock_irq(dev->host_lock) ++#define GDTH_UNLOCK_SCSI_DOCMD(dev) spin_unlock_irq(dev->host_lock) #else #define GDTH_INIT_LOCK_HA(ha) do {} while (0) #define GDTH_LOCK_HA(ha,flags) do {save_flags(flags); cli();} while (0)
@@ -1091,8 +1087,8 @@ -#define IBMLOCK spin_lock_irqsave(&io_request_lock, flags); -#define IBMUNLOCK spin_unlock_irqrestore(&io_request_lock, flags); -+#define IBMLOCK(dev) spin_lock_irqsave(((struct Scsi_Host *)dev)->host_lock, flags); -+#define IBMUNLOCK(dev) spin_unlock_irqrestore(((struct Scsi_Host *)dev)->host_lock, flags); ++#define IBMLOCK(dev) spin_lock_irqsave(dev->host_lock, flags); ++#define IBMUNLOCK(dev) spin_unlock_irqrestore(dev->host_lock, flags); /* driver configuration */ #define IM_MAX_HOSTS 8 /* maximum number of host adapters */
@@ -1783,10 +1779,10 @@ -#define IO_UNLOCK(host) spin_unlock_irqrestore(&(host)->host_lock,io_flags) -#define IO_LOCK_IRQ(host) spin_lock_irq(&(host)->host_lock) -#define IO_UNLOCK_IRQ(host) spin_unlock_irq(&(host)->host_lock) -+#define IO_LOCK(host) spin_lock_irqsave((host)->host_lock,io_flags) -+#define IO_UNLOCK(host) spin_unlock_irqrestore((host)->host_lock,io_flags) -+#define IO_LOCK_IRQ(host) spin_lock_irq((host)->host_lock) -+#define IO_UNLOCK_IRQ(host) spin_unlock_irq((host)->host_lock) ++#define IO_LOCK(host) spin_lock_irqsave(host->host_lock,io_flags) ++#define IO_UNLOCK(host) spin_unlock_irqrestore(host->host_lock,io_flags) ++#define IO_LOCK_IRQ(host) spin_lock_irq(host->host_lock) ++#define IO_UNLOCK_IRQ(host) spin_unlock_irq(host->host_lock) #define queue_task_irq(a,b) queue_task(a,b) #define queue_task_irq_off(a,b) queue_task(a,b)
@@ -1931,7 +1927,6 @@ out:; } /**************************************************************** -Only in ./drivers/scsi/pcmcia: .depend diff -ur ./drivers/scsi/ppa.c ./drivers/scsi/ppa.c --- ./drivers/scsi/ppa.c Mon Jan 28 13:45:34 2002 +++ ./drivers/scsi/ppa.c Mon Jan 28 13:29:22 2002
@@ -2252,7 +2247,6 @@ { restore_flags(flags); printk(KERN_ERR "sym53c416: Unable to assign IRQ %d\n", hosts[i].irq); -Only in ./drivers/scsi/sym53c8xx_2: .depend diff -ur ./drivers/scsi/sym53c8xx_comm.h ./drivers/scsi/sym53c8xx_comm.h --- ./drivers/scsi/sym53c8xx_comm.h Mon Jan 28 13:45:34 2002 +++ ./drivers/scsi/sym53c8xx_comm.h Mon Jan 28 13:41:44 2002
drivers/scsi/gdth.c +4 -4
@@ -629,10 +629,10 @@#define GDTH_LOCK_HA (ha,flags) spin_lock_irqsave(&(ha)->smp_lock,flags)#define GDTH_UNLOCK_HA (ha,flags) spin_unlock_irqrestore(&(ha)->smp_lock,flags) -#define GDTH_LOCK_SCSI_DONE (dev, flags) spin_lock_irqsave(((struct Scsi_Host *)dev->host_lock),flags) -#define GDTH_UNLOCK_SCSI_DONE (flags) spin_unlock_irqrestore(((struct Scsi_Host *)dev->host_lock),flags) -#define GDTH_LOCK_SCSI_DOCMD (dev) spin_lock_irq(((struct Scsi_Host *)dev->host_lock)) -#define GDTH_UNLOCK_SCSI_DOCMD (dev) spin_unlock_irq(((struct Scsi_Host *)dev->host_lock)) +#define GDTH_LOCK_SCSI_DONE (dev, flags) spin_lock_irqsave(dev->host_lock,flags) +#define GDTH_UNLOCK_SCSI_DONE (flags) spin_unlock_irqrestore(dev->host_lock,flags) +#define GDTH_LOCK_SCSI_DOCMD (dev) spin_lock_irq(dev->host_lock) +#define GDTH_UNLOCK_SCSI_DOCMD (dev) spin_unlock_irq(dev->host_lock)#else #define GDTH_INIT_LOCK_HA (ha) do {} while (0)#define GDTH_LOCK_HA (ha,flags) do {save_flags(flags); cli();} while (0)
drivers/scsi/ibmmca.c +2 -2
@@ -41,8 +41,8 @@/* current version of this driver-source: */ #define IBMMCA_SCSI_DRIVER_VERSION "4.0b" -#define IBMLOCK (dev) spin_lock_irqsave(((struct Scsi_Host *)dev)->host_lock, flags); -#define IBMUNLOCK (dev) spin_unlock_irqrestore(((struct Scsi_Host *)dev)->host_lock, flags); +#define IBMLOCK (dev) spin_lock_irqsave(dev->host_lock, flags); +#define IBMUNLOCK (dev) spin_unlock_irqrestore(dev->host_lock, flags);/* driver configuration */ #define IM_MAX_HOSTS 8/* maximum number of host adapters */
drivers/scsi/megaraid.c +4 -4
@@ -586,10 +586,10 @@#define DRIVER_LOCK (p)#define DRIVER_UNLOCK (p)#define IO_LOCK_T unsigned long io_flags = 0 -#define IO_LOCK (host) spin_lock_irqsave((host)->host_lock,io_flags) -#define IO_UNLOCK (host) spin_unlock_irqrestore((host)->host_lock,io_flags) -#define IO_LOCK_IRQ (host) spin_lock_irq((host)->host_lock) -#define IO_UNLOCK_IRQ (host) spin_unlock_irq((host)->host_lock) +#define IO_LOCK (host) spin_lock_irqsave(host->host_lock,io_flags) +#define IO_UNLOCK (host) spin_unlock_irqrestore(host->host_lock,io_flags) +#define IO_LOCK_IRQ (host) spin_lock_irq(host->host_lock) +#define IO_UNLOCK_IRQ (host) spin_unlock_irq(host->host_lock)#define queue_task_irq (a,b) queue_task(a,b)#define queue_task_irq_off (a,b) queue_task(a,b)