Commit ac03629
Revert "nfsd: fix oops when reading pool_stats before server is started"
This reverts commit 8e948c3.
The reverted commit moves a test on a field protected by a mutex outside
of the protection of that mutex, and so is obviously racey.
Depending on how the race goes, si->serv might be NULL when dereferenced
in svc_pool_stats_start(), or svc_pool_stats_stop() might unlock a mutex
that hadn't been locked.
This bug that the commit tried to fix has been addressed by initialising
->mutex earlier.
Fixes: 8e948c3 ("nfsd: fix oops when reading pool_stats before server is started")
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent e0011bc commit ac03629
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | 1424 | | |
1428 | 1425 | | |
1429 | 1426 | | |
1430 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
1431 | 1430 | | |
1432 | 1431 | | |
1433 | 1432 | | |
| |||
1459 | 1458 | | |
1460 | 1459 | | |
1461 | 1460 | | |
1462 | | - | |
1463 | | - | |
| 1461 | + | |
1464 | 1462 | | |
1465 | 1463 | | |
1466 | 1464 | | |
| |||
0 commit comments