All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Cc: James Bottomley <James.Bottomley@steeleye.com>,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [BUG] problems with USB memory pen
Date: Fri, 10 Oct 2003 08:58:50 -0700	[thread overview]
Message-ID: <20031010085850.A8160@beaverton.ibm.com> (raw)
In-Reply-To: <20031010060350.GA5962@pc11.op.pod.cz>; from samel@mail.cz on Fri, Oct 10, 2003 at 08:03:50AM +0200

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);
 	}

      reply	other threads:[~2003-10-10 15:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10  6:03 [BUG] problems with USB memory pen Vitezslav Samel
2003-10-10 15:58 ` Patrick Mansfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031010085850.A8160@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=James.Bottomley@steeleye.com \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.