pstore: Don't allow high traffic options on fragile devices
Some pstore backing devices use on board flash as persistent storage. These have limited numbers of write cycles so it is a poor idea to use them from high frequency operations. Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
eaadcfeb31
commit
df36ac1bc2
@@ -443,8 +443,11 @@ int pstore_register(struct pstore_info *psi)
|
||||
pstore_get_records(0);
|
||||
|
||||
kmsg_dump_register(&pstore_dumper);
|
||||
pstore_register_console();
|
||||
pstore_register_ftrace();
|
||||
|
||||
if ((psi->flags & PSTORE_FLAGS_FRAGILE) == 0) {
|
||||
pstore_register_console();
|
||||
pstore_register_ftrace();
|
||||
}
|
||||
|
||||
if (pstore_update_ms >= 0) {
|
||||
pstore_timer.expires = jiffies +
|
||||
|
Reference in New Issue
Block a user