]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] tape: duplicate sysfs filename when setting tape device online
authorMichael Holzheu <holzheu@de.ibm.com>
Thu, 17 Apr 2008 05:46:05 +0000 (07:46 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Apr 2008 05:46:59 +0000 (07:46 +0200)
commitdd4584621724f72034018b7016b6222096b40b5c
tree90ad17f1017103984c7f1aee20be7637b861e636
parentf31deb00df2e1af9d7e47d3bb064f5d563e1356f
[S390] tape: duplicate sysfs filename when setting tape device online

When a tape device is set online, offline and online again, the following
error message is printed on the console: "sysfs: duplicate filename
'non-rewinding' can not be created". The reason is that when setting a
device online, the tape driver creates a sysfs symlink from the tape device
to the tape class device. Unfortunately the symlink is not removed
correctly, when the device is set offline. Instead of passing the
tape device object to sysfs_remove_link, the class device object is used.
This patch fixes this problem and uses the correct tape device object now.

Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/char/tape_char.c
drivers/s390/char/tape_class.c
drivers/s390/char/tape_class.h