Skip to contentSkip to conversation

unregister_xenbus_watch() handling of xenwatch_mutex

DISCUSSION Jan Beulich 3 participants 3 messages Oct 18, 2007

lore
Share & tools
lore
#0 lore raw

2.6.23 acquires the mutex before canceling pending events, whereas linux-2.6.18-xen acquires and releases the mutex back-to-back after doing the cancellation. It would seem to me that the former method is more robust, but otoh I'm wondering why this change then wasn't also made in the 2.6.18 tree.

Thanks, Jan

#1 lore raw

That's a question for Jeremy. I think the 2.6.18 version is equally correct and only needs one if statement. Maybe hoisting the lock acquisition gave Jeremy a warmer fuzzy feeling? :-)

-- Keir

Quoted 13 lines · Jan Beulich

2.6.23 acquires the mutex before canceling pending events, whereas linux-2.6.18-xen acquires and releases the mutex back-to-back after doing the cancellation. It would seem to me that the former method is more robust, but otoh I'm wondering why this change then wasn't also made in the 2.6.18 tree.

Thanks, Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 4 lines · Keir Fraser

That's a question for Jeremy. I think the 2.6.18 version is equally correct and only needs one if statement. Maybe hoisting the lock acquisition gave Jeremy a warmer fuzzy feeling? :-)

I don't remember changing this specifically. It might have been in response to a review comment, or maybe xen-unstable changed since I grabbed the code...

J