[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <be0587f8-f4ea-4e37-b87e-569b26f10536@acm.org>
Date: Tue, 16 Jul 2024 14:01:22 -0700
From: Bart Van Assche <bvanassche@....org>
To: Yang Yang <yang.yang@...o.com>, Jens Axboe <axboe@...nel.dk>,
Andrew Morton <akpm@...ux-foundation.org>, Ming Lei <ming.lei@...hat.com>,
Omar Sandoval <osandov@...com>, linux-kernel@...r.kernel.org,
linux-block@...r.kernel.org
Subject: Re: [PATCH v8] sbitmap: fix io hung due to race on
sbitmap_word::cleared
On 7/16/24 1:26 AM, Yang Yang wrote:
> This patch achieves two purposes:
> 1. Check on ->cleared and update on both ->cleared and ->word need to
> be done atomically, and using spinlock could be the simplest solution.
> 2. Add extra check in sbitmap_deferred_clear(), to identify whether
> ->word has free bits.
Reviewed-by: Bart Van Assche <bvanassche@....org>
Powered by blists - more mailing lists