[RFC][PATCH] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-08-20 Thread Seiji Aguchi
Currently, when mounting pstore file system, a read callback of efi_pstore driver runs mutiple times as below. - In the first read callback, scan efivar_sysfs_list from head and pass a kmsg buffer of a entry to an upper pstore layer. - In the second read callback, rescan efivar_sysfs_list from

[RFC][PATCH] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-08-20 Thread Seiji Aguchi
Currently, when mounting pstore file system, a read callback of efi_pstore driver runs mutiple times as below. - In the first read callback, scan efivar_sysfs_list from head and pass a kmsg buffer of a entry to an upper pstore layer. - In the second read callback, rescan efivar_sysfs_list from