On 2019/05/16 20:48, Jan Kara wrote: > OK, so non-racy fix was a bit more involved and I've ended up just > upgrading the file reference to an exclusive one in loop_set_fd() instead > of trying to hand-craft some locking solution. The result is attached and > it passes blktests. blkdev_get() has corresponding blkdev_put(). bdgrab() does not have corresponding bdput() ?