On 2020/7/28 21:59, colyli@suse.de wrote:
From: Coly Li colyli@suse.de
This patch is a fix to patch "bcache: fix bio_{start,end}_io_acct with proper device". The previous patch uses a hack to temporarily set bi_disk to bcache device, which is mistaken too.
As Christoph suggests, this patch uses disk_{start,end}_io_acct() to count I/O for bcache device in the correct way.
Fixes: 85750aeb748f ("bcache: use bio_{start,end}_io_acct") Signed-off-by: Coly Li colyli@suse.de Cc: Christoph Hellwig hch@lst.de Cc: stable@vger.kernel.org
Hi Jens and Christoph,
This patch is tested, the I/O counter behavior is displayed by iostat in expected way.
Please consider to take it for Linux v5.9.
Thanks in advance.
Coly Li