[PATCH 0/1] cachefiles: Add a command to restore on-demand requests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi David, Jeffle & Xiang

In production environment, process crashes sometimes occurs.

In cachefiles on-demand read scenario, if user daemon crashes,
requests will return -EIO.
User programs which do not consider this error will trap into
uncertain state.

Based on this, we came up with a user daemon crash recover scheme.
Even if user daemon crashes, the device connection and anonymous fd
will not be released. Recovered user daemon only needs to write 'restore'
to /dev/cachefiles to restore in-flight requests.

Userspace Crash Recover Demo (Based on Jeffle's User Demo)
--------------------------
Git tree:
	https://github.com/userzj/demand-read-cachefilesd.git main
Gitweb:
	https://github.com/userzj/demand-read-cachefilesd

Jia Zhu (1):
  cachefiles: Add a command to restore on-demand requests

 fs/cachefiles/daemon.c   |  1 +
 fs/cachefiles/internal.h |  3 +++
 fs/cachefiles/ondemand.c | 25 +++++++++++++++++++++++++
 3 files changed, 29 insertions(+)

--
2.20.1



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux