aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2021-08-25 12:24:15 +0200
committerLinus Torvalds <[email protected]>2021-08-27 11:39:36 -0700
commit425bec0032f59eeee12520085cd054fac09cc66e (patch)
tree25477a10d8312d0c89b9ab2779c4821c8c7d56b5 /lib/test_overflow.c
parent5a61b7a29647ed7c939ca76d3bf83c75d10ba16e (diff)
virtio-mem: fix sleeping in RCU read side section in virtio_mem_online_page_cb()
virtio_mem_set_fake_offline() might sleep now, and we call it under rcu_read_lock(). To fix it, simply move the rcu_read_unlock() further up, as we're done with the device. Reported-by: Dan Carpenter <[email protected]> Fixes: 6cc26d77613a: "virtio-mem: use page_offline_(start|end) when setting PageOffline() Cc: "Michael S. Tsirkin" <[email protected]> Cc: Jason Wang <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Signed-off-by: David Hildenbrand <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions