Re: [PATCH RFC] sbitmap: Use lock/unlock atomic bitops
From: Tejun Heo <tj@kernel.org>
Date: 2018-02-27 18:14:04
From: Tejun Heo <tj@kernel.org>
Date: 2018-02-27 18:14:04
Hello, Omar. On Mon, Feb 26, 2018 at 02:14:44PM -0800, Omar Sandoval wrote:
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? Thanks. -- tejun