Commit a72cbf8
md/r5cache: call mddev_lock/unlock() in r5c_journal_mode_show
In r5c_journal_mode_show(), it is necessary to call mddev_lock()
before accessing conf and conf->log. Otherwise, the conf->log
may change (and become NULL).
Signed-off-by: Song Liu <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>1 parent 26e1304 commit a72cbf8
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2529 | 2529 | | |
2530 | 2530 | | |
2531 | 2531 | | |
2532 | | - | |
| 2532 | + | |
2533 | 2533 | | |
2534 | 2534 | | |
2535 | | - | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
2536 | 2542 | | |
| 2543 | + | |
2537 | 2544 | | |
2538 | 2545 | | |
2539 | 2546 | | |
| |||
2551 | 2558 | | |
2552 | 2559 | | |
2553 | 2560 | | |
| 2561 | + | |
2554 | 2562 | | |
2555 | 2563 | | |
2556 | 2564 | | |
| |||
0 commit comments