Skip to contentSkip to conversation

megaraid_mbox: remove scsi_assign_lock usage

PATCH In review Christoph Hellwig 2 participants 2 messages Oct 31, 2005 – Jul 12, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 megaraid_mbox: remove scsi_assign_lock usage

also remove the adapter->host_lock alias for adapter->lock and remove some superflous locking aswell as removing the tiny locking wrappers for the EH routines.

drivers/scsi/megaraid/mega_common.h +0 -2
Index: linux-2.6/drivers/scsi/megaraid/mega_common.h
===================================================================
@@ -97,7 +97,6 @@
  * @param dpc_h			: tasklet handle
  * @param pdev			: pci configuration pointer for kernel
  * @param host			: pointer to host structure of mid-layer
- * @param host_lock		: pointer to appropriate lock
  * @param lock			: synchronization lock for mid-layer and driver
  * @param quiescent		: driver is quiescent for now.
  * @param outstanding_cmds	: number of commands pending in the driver
@@ -152,7 +151,6 @@
 	struct tasklet_struct	dpc_h;
 	struct pci_dev		*pdev;
 	struct Scsi_Host	*host;
-	spinlock_t		*host_lock;
 	spinlock_t		lock;
 	uint8_t			quiescent;
 	int			outstanding_cmds;
drivers/scsi/megaraid/megaraid_mbox.c +17 -64

202 lines not on this page · raw message

#1 lore raw

ccsiss driver question

Does cciss driver support the ( deprecated) SCSI_IOCTL_SEND_COMMAND && SCSI_IOCTL_GET_IDLUN ioctls?
If not, is there a way to get these information from ccsiss driver without resorting to the corresponding sg driver device? Some code snippets which do this would be useful.

Also from userland, what would be an efficient way to get to the sg driver equivalent given an sd or a cciss device path?
( ie. other than enumerating each sg device and matching controller/target/lun values)

Thanks so much !!

suresh