Issue with lazy umount and closing file descriptor in between

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

 



We have observed below issues in busybox umount:
1. force umount (umount -f): it does not work as expected.
2. lazy umount(umount -l): it detaches the mount point but waits for
current mount point users(processes) to finish.
Corruption happens when we powerdown, while lazy umount is waiting for
a process to finish.
(e.g. #dd if=/dev/zero of=/mnt/test.txt ).
What could be the ideal way so as to avoid file system corruption in
above scenario?
Is it fine to close all open file descriptors on umount system call
before attempting umount? But this results in OOPS in certain
situations like:
1. User app issue a write/read request
2. Write reaches in kernel space but sleeps for some time e.g. it is
not available in dentry cache.
3. In the meanwhile, we issue umount. This will close open file
descriptor, free file/dentry object and then umount.
4. Now write wakes up and finds NULL file/dentry object and triggers oops.
Please offer some advice on this issue.
Thanks & Regards,
Amit Sahrawat
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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