Re: [PATCH v6 1/2] blktrace: Fix potentail deadlock between delete & sysfs ops

From: Christoph Hellwig
Date: Mon Sep 18 2017 - 20:02:15 EST


Taking a look at this it seems like using a lock in struct block_device
isn't the right thing to do anyway - all the action is on fields in
struct blk_trace, so having a lock inside that would make a lot more
sense.

It would also help to document what exactly we're actually protecting.