Commit 7a92dea
Andreas Gruenbacher
gfs2: Fix atomic bug in gfs2_instantiate
Replace test_bit() + set_bit() with test_and_set_bit() where we need an atomic
operation. Use clear_and_wake_up_bit() instead of open coding it.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 9642c8c commit 7a92dea
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
513 | | - | |
514 | 512 | | |
515 | 513 | | |
516 | 514 | | |
517 | | - | |
518 | | - | |
519 | | - | |
| 515 | + | |
520 | 516 | | |
521 | 517 | | |
522 | 518 | | |
| |||
0 commit comments