Commit d6c2f41
libceph: fix log output race condition in OSD client
OSD client logging has a problem in get_osd() and put_osd().
For one logging output refcount_read() is called twice. If recount
value changes between both calls logging output is not consistent.
This patch prints out only the resulting value.
[ idryomov: don't make the log messages more verbose ]
Signed-off-by: Simon Buttgereit <simon.buttgereit@tu-ilmenau.de>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 7d0a66e commit d6c2f41
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | | - | |
1284 | | - | |
| 1283 | + | |
1285 | 1284 | | |
1286 | 1285 | | |
1287 | 1286 | | |
| |||
1291 | 1290 | | |
1292 | 1291 | | |
1293 | 1292 | | |
1294 | | - | |
1295 | | - | |
| 1293 | + | |
1296 | 1294 | | |
1297 | 1295 | | |
1298 | 1296 | | |
| |||
0 commit comments