Am Montag, 20. Dezember 2004 08:04 schrieb Pete Zaitcev: > + memcpy(&mbus->shim_ops, ubus->op, sizeof(struct > usb_operations)); > + mbus->shim_ops.submit_urb = mon_submit; > + mbus->saved_op = ubus->op; > + ubus->op = &mbus->shim_ops; > + ubus->monitored = 1;
I think you need smp_wmb() here to make sure that an irq taken
on another CPU sees the manipulations in the correct order.
Regards
Oliver
