scsi: use device_remove_file_self() instead of device_schedule_callback()
authorTejun Heo <tj@kernel.org>
Fri, 10 Jan 2014 13:57:29 +0000 (08:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2014 22:13:59 +0000 (14:13 -0800)
commitde1dee7820c44b1a5765265ed7ca8ee44f2367c1
tree99ed8a8857de0b9f9c1062f389ac5c517e640470
parent6716d289c437ad42dee455d241b29b71a816fbff
scsi: use device_remove_file_self() instead of device_schedule_callback()

driver-core now supports synchrnous self-deletion of attributes and
the asynchrnous removal mechanism is scheduled for removal.  Use it
instead of device_schedule_callback().  This makes "delete" behave
synchronously.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi_sysfs.c