diff options
| author | Akinobu Mita <[email protected]> | 2017-07-14 21:49:54 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-07-14 22:05:13 +0000 |
| commit | bfc740938d151001cb1158580796f8f3be3bf0c1 (patch) | |
| tree | 3a0f549da5213fca25afe2ea9a8d4c20b7cc9b99 /lib/fault-inject.c | |
| parent | fault-inject: parse as natural 1-based value for fail-nth write interface (diff) | |
| download | kernel-bfc740938d151001cb1158580796f8f3be3bf0c1.tar.gz kernel-bfc740938d151001cb1158580796f8f3be3bf0c1.zip | |
fault-inject: make fail-nth read/write interface symmetric
The read interface for fail-nth looks a bit odd. Read from this file
returns "NYYYY..." or "YYYYY..." (this makes me surprise when cat this
file). Because there is no EOF condition. The first character
indicates current->fail_nth is zero or not, and then current->fail_nth
is reset to zero.
Just returning task->fail_nth value is more natural to understand.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Akinobu Mita <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
