diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-06-08 17:39:40 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-06-08 17:39:40 +0200 |
| commit | 1b8fb4fec399dd9520db68b0c8e97d21881d639b (patch) | |
| tree | 8e1fd0e33a6e6628245e275cdb87e94cc8b3984e /lib | |
| parent | fcfa74a1cfe16dace0c6a34d0c83e290843a35bd (diff) | |
| download | plan9front-1b8fb4fec399dd9520db68b0c8e97d21881d639b.tar.xz | |
swap: make sure swap address sticks arround until page is written to swap
we have to make sure the *swap address* doesnt go away,
after putting the swap address in the segment pte.
after we unlock the segment, the process could be
killed or fault which would cause the swap address to
be freed *before* we write the page to disk when it
pulls the page from the cache and putswap() swap pte.
keeping a reference to the page is no good. we have
to hold on the swap address. this also has the advantage
that we can now test if the swap address is still
referenced and can avoid writing to disk.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
