mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mike Anderson <andmike@us.ibm.com>
To: Bradley Chapman <kakadu_croc@yahoo.com>
Cc: linux-kernel@vger.kernel.org, Greg KH <greg@kroah.com>
Subject: Re: Badness in atomic_dec_and_test in 2.6.0-test9-mm2
Date: Tue, 11 Nov 2003 16:45:19 -0800	[thread overview]
Message-ID: <20031112004519.GA1771@beaverton.ibm.com> (raw)
In-Reply-To: <20031111222731.72833.qmail@web40912.mail.yahoo.com>

Bradley Chapman [kakadu_croc@yahoo.com] wrote:
> (I sent a previous version of this e-mail to the linux-scsi and usb-storage
> mailinglists mentioned in MAINTAINERS, but received no response)
> 
> When I unplug my USB Mass Storage device after unmounting it, I get the following
> badness message:

Greg posted a response the other day to a query from Alan Stern. Here is
the link 
http://marc.theaimsgroup.com/?l=linux-kernel&m=106835250124362&w=2

This should be the same problem that you are hitting.

A patch was checked into Linus's tree on 2003-11-07 by Greg that made a
couple line change to class.c.

Here is the patch in case you need to stay on mm2.

-andmike
--
Michael Anderson
andmike@us.ibm.com

--- 1.41/drivers/base/class.c	Fri Aug 29 14:18:26 2003
+++ 1.42/drivers/base/class.c	Fri Nov  7 06:48:28 2003
@@ -255,6 +255,7 @@
 
 void class_device_initialize(struct class_device *class_dev)
 {
+	kobj_set_kset_s(class_dev, class_obj_subsys);
 	kobject_init(&class_dev->kobj);
 	INIT_LIST_HEAD(&class_dev->node);
 }
@@ -277,7 +278,6 @@
 
 	/* first, register with generic layer. */
 	kobject_set_name(&class_dev->kobj, class_dev->class_id);
-	kobj_set_kset_s(class_dev, class_obj_subsys);
 	if (parent)
 		class_dev->kobj.parent = &parent->subsys.kset.kobj;
 

  reply	other threads:[~2003-11-12  0:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11 22:27 Bradley Chapman
2003-11-12  0:45 ` Mike Anderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-08 20:45 Bradley Chapman

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=20031112004519.GA1771@beaverton.ibm.com \
    --to=andmike@us.ibm.com \
    --cc=greg@kroah.com \
    --cc=kakadu_croc@yahoo.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome