Re: [Xen-devel] [PATCH v4 2/2] gnttab: refactor locking for scalability

2015-01-12 Thread Jan Beulich
>>> On 09.01.15 at 16:12, wrote: > @@ -188,6 +191,26 @@ nr_active_grant_frames(struct grant_table *gt) > return num_act_frames_from_sha_frames(nr_grant_frames(gt)); > } > > +static inline struct active_grant_entry * > +active_entry_acquire(struct grant_table *t, grant_ref_t e) > +{ > +

[Xen-devel] [PATCH v4 2/2] gnttab: refactor locking for scalability

2015-01-09 Thread Christoph Egger
From: Matt Wilson This patch refactors grant table locking. It splits the previous single spinlock per grant table into multiple locks. The heavily modified components of the grant table (the maptrack state and the active entries) are now protected by their own spinlocks. The remaining elements o