[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] rwlock: remove unneeded subtraction
- To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 15 Feb 2022 11:37:45 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cWHDm4fAwdAOKXWCUFrNOk5+vDZiGDKTmavTJpL7dbM=; b=kTVvYq6F3HxhVzZ/yWGhRMdCt8y2fK1mES9vFtqLHJAe/3KLTTAtsb3tLNOwkT5++ti4RTzvWqmAvLYP9aa0AgV8Zc+F6rjICaIdXXyDciHhvrxCQGDsy4ujdX7iYkJPr5PhW1R0kuidyoYVysqvneM7GrEOdttIs3LdrxLd89xvLRqPKnWnWiVfS6qM+7buM0ikkf7DXK3xJQA/My1IKafgmu8FjLDX/Ad6thqeyQuReu8/LmLvnmHkzJctG0cqVtrUX/giFJmji70kOl2LQ8qLZYGAjm6MVr0YFo5muZqzNBIIgWBPTL9AqXBKr7/4T71i/cXt0GthqXDXW7BxCw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HTZAAIwX7fMi4n6jz5SUy31bQwawseazrN1nK6x+jE7c3+ExQe5+5In+NpEBClhgQQ66ZCDrRsptZHYrUnxRnXSue8GZlHeEMWZ0psz3HD6urwel6qVrZ6gXLiFS7pw8a1WGkg4TBa9zX6OL/lW/q4wLkFAXfVeqZtjWXIIH1m3CHNS4nCqxuA/XbfPw7Qja7K2LbJ2h2u/9OyTtqprPg6NpXak6hxoeHvGLT+agadfoEUG6lEv3WBgPdJ3eYm7Co5VM/5W3MzZVazW/NVXzNZKovugqbBgEPtBHT2LUsTZygTKrhNj7C2Bz/0AB+tNTSmArglbr9vPTNlJoaY6RDg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 15 Feb 2022 10:37:53 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 15.02.2022 10:39, Roger Pau Monne wrote:
> There's no need to subtract _QR_BIAS from the lock value for storing
> in the local cnts variable in the read lock slow path: the users of
> the value in cnts only care about the writer-related bits and use a
> mask to get the value.
>
> Note that further setting of cnts in rspin_until_writer_unlock already
> do not subtract _QR_BIAS.
>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
|