We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6568edb + 20a8e45 commit 5d77540Copy full SHA for 5d77540
1 file changed
drivers/md/bcache/super.c
@@ -1378,7 +1378,8 @@ static CLOSURE_CALLBACK(cached_dev_free)
1378
* The sb_bio is embedded in struct cached_dev, so we must
1379
* ensure no I/O is in progress.
1380
*/
1381
- closure_sync(&dc->sb_write);
+ down(&dc->sb_write_mutex);
1382
+ up(&dc->sb_write_mutex);
1383
1384
if (dc->sb_disk)
1385
folio_put(virt_to_folio(dc->sb_disk));
0 commit comments