Skip to content

Commit 5d77540

Browse files
committed
Merge branch 'for-7.1/block' into for-next
* for-7.1/block: bcache: fix uninitialized closure object
2 parents 6568edb + 20a8e45 commit 5d77540

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/md/bcache/super.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,8 @@ static CLOSURE_CALLBACK(cached_dev_free)
13781378
* The sb_bio is embedded in struct cached_dev, so we must
13791379
* ensure no I/O is in progress.
13801380
*/
1381-
closure_sync(&dc->sb_write);
1381+
down(&dc->sb_write_mutex);
1382+
up(&dc->sb_write_mutex);
13821383

13831384
if (dc->sb_disk)
13841385
folio_put(virt_to_folio(dc->sb_disk));

0 commit comments

Comments
 (0)