Re: [PATCH RFC] sbitmap: Use lock/unlock atomic bitops
From: Omar Sandoval <osandov@osandov.com>
Date: 2018-02-27 20:29:38
From: Omar Sandoval <osandov@osandov.com>
Date: 2018-02-27 20:29:38
On Tue, Feb 27, 2018 at 10:14:04AM -0800, Tejun Heo wrote:
Hello, Omar. On Mon, Feb 26, 2018 at 02:14:44PM -0800, Omar Sandoval wrote:quoted
quoted
wake_index = atomic_read(&sbq->wake_index); for (i = 0; i < SBQ_WAIT_QUEUES; i++) { struct sbq_wait_state *ws = &sbq->ws[wake_index];So I think we want a patch for the test_and_set_bit_lock() and clear_bit_unlock(), but the rest should stay as-is.Yeah, that makes sense to me. Would you be interested in updating the patch?
Yup, I'll send it up. Thanks, Tejun!