[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170704.034135.1806741431884009078.davem@davemloft.net>
Date: Tue, 04 Jul 2017 03:41:35 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: andriy.shevchenko@...ux.intel.com
Cc: mac@...ware.de, isdn@...ux-pingi.de, netdev@...r.kernel.org
Subject: Re: [PATCH v1] ISDN: eicon: switch to use native bitmaps
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Date: Tue, 4 Jul 2017 13:34:51 +0300
> Two arrays are clearly bit maps, so, make that explicit by converting to
> bitmap API and remove custom helpers.
>
> Note sig_ind() uses out of boundary bit to (looks like) protect against
> potential bitmap_empty() checks for the same bitmap.
>
> This patch removes that since:
> 1) that didn't guarantee atomicity anyway;
> 2) the first operation inside the for-loop is set bit in the bitmap
> (which effectively makes it non-empty);
> 3) group_optimization() doesn't utilize possible emptiness of the bitmap
> in question.
>
> Thus, if there is a protection needed it should be implemented properly.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
net-next is closed, please submit this when net-next opens back up.
Thank you.
Powered by blists - more mailing lists