Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

irqbypass: Drop superfluous might_sleep() annotations

Drop superfluous might_sleep() annotations from irqbypass, mutex_lock()
provides all of the necessary tracking.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20250516230734.2564775-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>

-8
-8
virt/lib/irqbypass.c
··· 90 90 if (!producer->token) 91 91 return -EINVAL; 92 92 93 - might_sleep(); 94 - 95 93 mutex_lock(&lock); 96 94 97 95 list_for_each_entry(tmp, &producers, node) { ··· 134 136 if (!producer->token) 135 137 return; 136 138 137 - might_sleep(); 138 - 139 139 mutex_lock(&lock); 140 140 141 141 list_for_each_entry(tmp, &producers, node) { ··· 171 175 if (!consumer->token || 172 176 !consumer->add_producer || !consumer->del_producer) 173 177 return -EINVAL; 174 - 175 - might_sleep(); 176 178 177 179 mutex_lock(&lock); 178 180 ··· 215 221 216 222 if (!consumer->token) 217 223 return; 218 - 219 - might_sleep(); 220 224 221 225 mutex_lock(&lock); 222 226