Thomas Schoebel-Theuer
25d954051b
logger: move ranking array from stack to brick instance
...
Don't allocate this on the stack, it might grow too big in future.
Reduces the risk of stack overflows (not observed until now, but
suspected).
2016-01-02 10:18:22 +01:00
Thomas Schoebel-Theuer
045d0e0356
logger: fix potential deadlock caused by incorrect accounting
...
Never observed in practice, found by testing with kernel upstream
versions.
2016-01-02 09:43:22 +01:00
Thomas Schoebel-Theuer
4d8dc3a619
logger: fix spelling
2015-10-07 10:45:51 +02:00
Thomas Schoebel-Theuer
7cbb705882
logger: safeguard endio() calling conventions
2015-05-05 08:46:28 +02:00
Thomas Schoebel-Theuer
18f1ae84f3
logger: fix race on completion refcount
2015-05-05 08:46:28 +02:00
Thomas Schoebel-Theuer
aa09d7df30
all: clarify license GPLv2+
2014-11-25 18:09:17 +01:00
Thomas Schoebel-Theuer
21991f3cf3
logger: fix scarce race on replay EOF
...
This led to annoying error messages like checksumming mismatches
or record sequence number mismatches etc.
AFAIK the data integrity was not in danger (since the checks
masked out any potentially harmful actions).
2014-06-18 10:44:54 +02:00
Thomas Schoebel-Theuer
7aebfdf6bb
all: remove __exit annotation
2014-04-24 18:08:31 +02:00
Thomas Schoebel-Theuer
782dfc97e4
trans_logger: fix replay_head refcounting, add paranoia
2014-04-20 09:08:54 +02:00
Thomas Schoebel-Theuer
9d39da8096
trans_logger: fix replay disk IO error propagation
2014-04-08 10:10:16 +02:00
Thomas Schoebel-Theuer
c621de770b
all: improve checking of callback chain
2014-03-31 06:59:10 +02:00
Thomas Schoebel-Theuer
fcf4863503
light: fix annoying replay error message
2014-03-31 06:59:10 +02:00
Thomas Schoebel-Theuer
d96931867a
trans_logger: fix error code propagation
2014-03-19 11:44:58 +01:00
Thomas Schoebel-Theuer
e551c1aa87
light: fix emergency mode
2014-03-19 11:44:58 +01:00
Thomas Schoebel-Theuer
7fa4bf1ecd
trans_logger: fix emergency mode
2014-03-19 11:44:57 +01:00
Thomas Schoebel-Theuer
9d86cb679b
all: fix inconsistent terminology apply->replay
...
In most cases, "replay" was already used. So it is easier
to switch the rare "apply" wording to "replay" everywhere (hopefully).
2014-03-19 11:30:24 +01:00
Thomas Schoebel-Theuer
99644a943a
all: make *_switch() code idempotent
...
New semantics: it must be possible to call the switch functions
even when nothing has changed.
2013-10-17 07:48:32 +02:00
Thomas Schoebel-Theuer
22d4516d21
trans_logger: use kb as replay limiter units
2013-07-15 12:21:16 +02:00
Thomas Schoebel-Theuer
ad08afe074
light: use replay_tolerance only after failed replay attempt
2013-07-08 10:47:33 +02:00
Thomas Schoebel-Theuer
d4338032bb
logger: make writeback more resilient
2013-07-04 07:21:01 +02:00
Thomas Schoebel-Theuer
0f4cc33d15
logger: make replay_timeout configurable
2013-07-04 07:21:01 +02:00
Thomas Schoebel-Theuer
bfb6070d25
logger: add replay_tolerance
2013-07-04 07:21:00 +02:00
Thomas Schoebel-Theuer
5b523f16f7
logger: avoid potential races between IO and symlink updates
2013-06-20 15:09:05 +02:00
Thomas Schoebel-Theuer
39ed143e27
logger: fix potential race on replay_end_pos
...
The variable should only be set from outside, e.g. mars_light.
This should also lead to more correct replay_code==2 results.
2013-06-20 15:09:05 +02:00
Thomas Schoebel-Theuer
fe54abb225
logger: update symlinks even at apply of incomplete logfiles
2013-06-20 15:08:48 +02:00
Thomas Schoebel-Theuer
21a5d4160c
logger: disallow skipping of bad data
...
Be as conservative as possible.
Any copputed logfiles must be corrected in userspace.
2013-06-20 15:08:28 +02:00
Thomas Schoebel-Theuer
1202f2ae8e
trans_logger: fix emergency mode (cease_logging)
2013-04-22 11:48:50 +02:00
Thomas Schoebel-Theuer
8f6054b0cc
trans_logger: call _flush_inputs() more often
...
The old behaviour could lead to starvation effects.
In particular, direct IO writes were affected.
2013-04-18 18:31:38 +02:00
Thomas Schoebel-Theuer
b0b9723cb2
trans_logger: fix possible endless loop on termination
2013-04-16 10:04:43 +02:00
Thomas Schoebel-Theuer
e7c67b73b1
trans_logger: avoid higher-order pages for hashing
2013-04-15 18:37:11 +02:00
Thomas Schoebel-Theuer
c58417d271
all: move kernel source into separate directory
2013-04-08 17:01:37 +02:00