summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorSeongJae Park <sjpark@amazon.de>2020-01-27 09:18:09 +0100
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2020-01-29 07:35:49 -0600
commit060eabe8fbe726aca341b518366da4d79e338100 (patch)
treede0003cb6dc543be114115605aae0f3e518803ac /drivers/block
parent8a105678fb3ec4763352db84745968bf2cb4aa65 (diff)
downloadlinux-060eabe8fbe726aca341b518366da4d79e338100.tar.gz
linux-060eabe8fbe726aca341b518366da4d79e338100.tar.bz2
linux-060eabe8fbe726aca341b518366da4d79e338100.zip
xenbus/backend: Protect xenbus callback with lock
A driver's 'reclaim_memory' callback can race with 'probe' or 'remove' because it will be called whenever memory pressure is detected. To avoid such race, this commit embeds a spinlock in each 'xenbus_device' and make 'xenbus' to hold the lock while the corresponded callbacks are running. Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: SeongJae Park <sjpark@amazon.de> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions