diff options
author | Christoph Hellwig <hch@lst.de> | 2006-11-04 20:11:36 +0100 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-15 14:14:46 -0600 |
commit | 4f777ed26086452737ea52597cf8de26137090d5 (patch) | |
tree | 284030d230f9cd5528f611d34fd0a88c82edaac3 /drivers/scsi | |
parent | 3b00315799d78f76531b71435fbc2643cd71ae4c (diff) | |
download | op-kernel-dev-4f777ed26086452737ea52597cf8de26137090d5.zip op-kernel-dev-4f777ed26086452737ea52597cf8de26137090d5.tar.gz |
[SCSI] kill scsi_assign_lock
scsi_assign_lock has been unused for a long time and is a bad idea
in general, so kill it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/hosts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 68ef163..2ffdc9e 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -301,8 +301,8 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) if (!shost) return NULL; - spin_lock_init(&shost->default_lock); - scsi_assign_lock(shost, &shost->default_lock); + shost->host_lock = &shost->default_lock; + spin_lock_init(shost->host_lock); shost->shost_state = SHOST_CREATED; INIT_LIST_HEAD(&shost->__devices); INIT_LIST_HEAD(&shost->__targets); |