[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20230811023547.25423-1-xiaoshoukui@gmail.com>
Date: Thu, 10 Aug 2023 22:35:47 -0400
From: xiaoshoukui <xiaoshoukui@...il.com>
To: dsterba@...e.cz
Cc: clm@...com, dsterba@...e.com, josef@...icpanda.com,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org,
xiaoshoukui@...il.com, xiaoshoukui@...jie.com.cn
Subject: Re: [PATCH] btrfs: fix return value when race occur between balance and cancel/pause
The first thought to solve the problem was to use locks, but after practice,
it turn it out that this would made the original code even more complex.
The way of tracking status may just a workaround solution. The better solution
may is to refactor balance relevant code.
I think interface provided to the user is very important for reliability.
Looking forward to a better solution, If needed, I can take some effort
for testing and reproducing.
Powered by blists - more mailing lists