summaryrefslogtreecommitdiff
path: root/drivers/md/dm-bio-prison-v1.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2019-06-28 14:59:56 +0300
committerJens Axboe <axboe@kernel.dk>2019-06-28 16:39:17 +0300
commit41508bb7d46b74dba631017e5a702a86caf1db8c (patch)
tree72a7cc87407d048751e2ab6e676a3969f3b6caa4 /drivers/md/dm-bio-prison-v1.c
parente5ec5f4765ada9c75fb3eee93a6e72f0e50599d5 (diff)
downloadlinux-41508bb7d46b74dba631017e5a702a86caf1db8c.tar.xz
bcache: add comments for mutex_lock(&b->write_lock)
When accessing or modifying BTREE_NODE_dirty bit, it is not always necessary to acquire b->write_lock. In bch_btree_cache_free() and mca_reap() acquiring b->write_lock is necessary, and this patch adds comments to explain why mutex_lock(&b->write_lock) is necessary for checking or clearing BTREE_NODE_dirty bit there. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-bio-prison-v1.c')
0 files changed, 0 insertions, 0 deletions