diff options
| author | Milan Broz <[email protected]> | 2008-10-10 12:37:07 +0000 |
|---|---|---|
| committer | Alasdair G Kergon <[email protected]> | 2008-10-10 12:37:07 +0000 |
| commit | 4e59409891c9cc30cb4d5d73250b0c968af8e39b (patch) | |
| tree | c21382942df3b7dd363bca91fe5cd8fef3c64f0b /lib/bitmap.c | |
| parent | dm crypt: move dec_pending on error into write_io_submit (diff) | |
| download | kernel-4e59409891c9cc30cb4d5d73250b0c968af8e39b.tar.gz kernel-4e59409891c9cc30cb4d5d73250b0c968af8e39b.zip | |
dm crypt: fix async inc_pending
The pending reference count must be incremented *before* the async work is
queued to another thread, not after. Otherwise there's a race if the
work completes and decrements the reference count before it gets incremented.
Signed-off-by: Milan Broz <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
