CPU1's old thread gets rescheduled on CPU2 (CPU1 stays frozen), eventually
returns to userspace, CPU2 gets rescheduled after the down(&lock) in
cleanup_module, cleanup_module finishes.
Note this is completely equivalent to UP
thread a thread b
down(&lock);
schedule();
rmmod
cleanup_module
down(&lock)
Philipp
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/