All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] problems with USB memory pen
@ 2003-10-10  6:03 Vitezslav Samel
  2003-10-10 15:58 ` Patrick Mansfield
  0 siblings, 1 reply; 2+ messages in thread
From: Vitezslav Samel @ 2003-10-10  6:03 UTC (permalink / raw)
  To: linux-kernel, linux-scsi

	Hi!

  Since 2.6.0-test6 ther is an annoying problem with my USB memory pen.
First time I insert it, kernel gives it "sdc" (which is O.K.). Next time
kernel gives it "sdd", "sde" and so on. Seems like someone is not releasing
unused SCSI devices.

  I narrowed down this problem to linux-2.6.0-test5-bk14. There are no USB
changes, but are SCSI changes which I don't understand that well to fix my
problem.

  I would appreciate if someone will look at it.

	Thanks,
		Vita Samel

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

* Re: [BUG] problems with USB memory pen
  2003-10-10  6:03 [BUG] problems with USB memory pen Vitezslav Samel
@ 2003-10-10 15:58 ` Patrick Mansfield
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Mansfield @ 2003-10-10 15:58 UTC (permalink / raw)
  To: linux-kernel, linux-scsi; +Cc: James Bottomley, Christoph Hellwig

On Fri, Oct 10, 2003 at 08:03:50AM +0200, Vitezslav Samel wrote:
> 	Hi!
> 
>   Since 2.6.0-test6 ther is an annoying problem with my USB memory pen.
> First time I insert it, kernel gives it "sdc" (which is O.K.). Next time
> kernel gives it "sdd", "sde" and so on. Seems like someone is not releasing
> unused SCSI devices.
> 
>   I narrowed down this problem to linux-2.6.0-test5-bk14. There are no USB
> changes, but are SCSI changes which I don't understand that well to fix my
> problem.

This is the third posting of this patch:

--- bleed-2.5/drivers/scsi/scsi_sysfs.c-orig	Mon Sep 29 12:21:09 2003
+++ bleed-2.5/drivers/scsi/scsi_sysfs.c	Mon Sep 29 16:19:22 2003
@@ -412,7 +412,7 @@
 		set_bit(SDEV_DEL, &sdev->sdev_state);
 		if (sdev->host->hostt->slave_destroy)
 			sdev->host->hostt->slave_destroy(sdev);
-		if (atomic_read(&sdev->access_count))
+		if (!atomic_read(&sdev->access_count))
 			device_del(&sdev->sdev_gendev);
 		up_write(&class->subsys.rwsem);
 	}

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

end of thread, other threads:[~2003-10-10 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10  6:03 [BUG] problems with USB memory pen Vitezslav Samel
2003-10-10 15:58 ` Patrick Mansfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.