]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: use device_remove_file_self() instead of device_schedule_callback()
authorTejun Heo <tj@kernel.org>
Mon, 3 Feb 2014 19:03:03 +0000 (14:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 23:42:41 +0000 (15:42 -0800)
commit7b24454aff5041fb230813fa9bf0f9a2091f2129
tree82b9f44feda06f9223406989a5472b66213e164a
parent6f2767d3aa97067c850d01e875fdf57300b9eccf
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