public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Two questions on scsi_device_{get,put}
@ 2003-08-08 12:59 Christoph Hellwig
  2003-08-11 20:37 ` Mike Anderson
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2003-08-08 12:59 UTC (permalink / raw)
  To: andmike; +Cc: linux-scsi

I'm trying to forward-port my locking infrastructure for
shost->my_devices to the current scsi tree.  As this list is
acquired from irq context we need these locks to be spinlocks,
but for that to work scsi_device_get/scsi_device_put must not
block.

But after your changes it's using the class r/w semaphore for
synchronisation.  What it this protecting except sdev->access_count?
Also what's the reason we can't do the device_del directly but have
to do it in scsi_device_put?

A final nitpick:  you're losing a module refernece for some failure
pathes of scsi_module_get.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-12  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-08 12:59 Two questions on scsi_device_{get,put} Christoph Hellwig
2003-08-11 20:37 ` Mike Anderson
2003-08-12  8:43   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox