]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
driver core: Skip unnecessary work when device doesn't have sync_state()
authorSaravana Kannan <saravanak@google.com>
Fri, 21 Feb 2020 08:05:10 +0000 (00:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 15:10:18 +0000 (16:10 +0100)
commitdf4ebb7f1e7fbfc548934ddeb766b3265e73bedf
tree822f72f70a9e4e6efc8001b2b917fb54e679424f
parent6d88283a49425eb469aa60ffebe76539e73c933e
driver core: Skip unnecessary work when device doesn't have sync_state()

commit 77036165d8bcf7c7b2a2df28a601ec2c52bb172d upstream.

A bunch of busy work is done for devices that don't have sync_state()
support. Stop doing the busy work.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200221080510.197337-4-saravanak@google.com
Cc: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c