Staging
v0.8.1
https://github.com/torvalds/linux
Revision 7cd95f56cb61f5348d062527c9d3653196f6e629 authored by Bartlomiej Zolnierkiewicz on 05 July 2008, 18:30:51 UTC, committed by Bartlomiej Zolnierkiewicz on 05 July 2008, 18:30:51 UTC
class->dev_release is called by device_release() iff dev->release
is not present so ide_port_class_release() is never called and the
last hwif->gendev reference is not dropped.

Fix it by removing ide_port_class_release() and get_device() call
from ide_register_port() (device_create_drvdata() takes a hwif->gendev
reference anyway).

This patch fixes hang on wait_for_completion(&hwif->gendev_rel_comp)
in ide_unregister() reported by Pavel Machek.

Cc: Pavel Machek <pavel@suse.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
1 parent b8a0b6c
History
Tip revision: 7cd95f56cb61f5348d062527c9d3653196f6e629 authored by Bartlomiej Zolnierkiewicz on 05 July 2008, 18:30:51 UTC
ide: fix hwif->gendev refcounting
Tip revision: 7cd95f5
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.6 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 98.6 KB
Makefile -rw-r--r-- 53.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top