deleting operation of reiserfs leads to usb stick hangs

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

 



Hi Jeff,

 Excuse me to disturb you. (sorry for resending due to prior one is html format and is rejected.)
 One issue is encountered by our device:
     After deleting lots of files/directories in reiserfs partition of a usb stick then hot reboot, sometimes the device can’t mount the usb stick successfully.
 
 The symptom:
     When the issue occurs, device can’t receive any response from the DATA IN endpoint of the usb stick, hence all SCSI commands fail and the usb stick can’t be mounted.
     Power cycle or unplug-then-plug-in the usb stick can recover it.
     But the issue occurs only when our device uses Linux 2.6.32, there is no such issue when it uses 2.6.15 (we upgrade the device to Linux 2.6.32 from 2.6.15 recently).
 
 The cause is narrowed down by tests:
     There are 2 partitions in the usb stick, one is reiserfs, the other is ext2.
     Doing lots of operation (deleting, copying) in reiserfs then hot reboot sometimes lead to the issue, but doing the same operation on ext2 won’t;
     Doing lots of deleting file/directories operation in reiserfs then hot reboot sometimes lead to the issue, but doing copying operation won’t.
     Reformatting the reiserfs partition under 2.6.32 then doing testing again, there is the same issue, so this is not caused by the possible incompatible format between 2.6.15 and 2.6.32.
 
 Some efforts to fix it:
     Merging related changes in latest 2.6.32.61 won’t fix the issue.
     Comparing codes in reiserfs\namei.c between 2.6.15 and 2.6.32, it seems only some little tuning is did to be compatible with kernel API changes.
 
 Related kernel configuration:
 2.6.32:
 # File systems
 #
 CONFIG_EXT2_FS=y
 # CONFIG_EXT2_FS_XATTR is not set
 # CONFIG_EXT2_FS_XIP is not set
 # CONFIG_EXT3_FS is not set
 # CONFIG_EXT4_FS is not set
 CONFIG_REISERFS_FS=y
 # CONFIG_REISERFS_CHECK is not set
 CONFIG_REISERFS_PROC_INFO=y
 # CONFIG_REISERFS_FS_XATTR is not set
 # CONFIG_JFS_FS is not set
 # CONFIG_FS_POSIX_ACL is not set
 # CONFIG_XFS_FS is not set
 # CONFIG_OCFS2_FS is not set
 # CONFIG_BTRFS_FS is not set
 # CONFIG_NILFS2_FS is not set
 CONFIG_FILE_LOCKING=y
 # CONFIG_DELAY_ASYNC_READAHEAD is not set
 # CONFIG_SEND_PAGES is not set
 CONFIG_FSNOTIFY=y
 CONFIG_DNOTIFY=y
 # CONFIG_INOTIFY is not set
 # CONFIG_INOTIFY_USER is not set
 # CONFIG_QUOTA is not set
 # CONFIG_AUTOFS_FS is not set
 # CONFIG_AUTOFS4_FS is not set
 # CONFIG_FUSE_FS is not set
   
 2.6.15:
 # File systems
 #
 CONFIG_EXT2_FS=y
 # CONFIG_EXT2_FS_XATTR is not set
 # CONFIG_EXT2_FS_XIP is not set
 # CONFIG_EXT3_FS is not set
 # CONFIG_JBD is not set
 CONFIG_REISERFS_FS=y
 # CONFIG_REISERFS_CHECK is not set
 CONFIG_REISERFS_PROC_INFO=y
 # CONFIG_REISERFS_FS_XATTR is not set
 # CONFIG_JFS_FS is not set
 # CONFIG_FS_POSIX_ACL is not set
 # CONFIG_XFS_FS is not set
 # CONFIG_MINIX_FS is not set
 # CONFIG_ROMFS_FS is not set
 # CONFIG_INOTIFY is not set
 # CONFIG_QUOTA is not set
 CONFIG_DNOTIFY=y
 # CONFIG_AUTOFS_FS is not set
 # CONFIG_AUTOFS4_FS is not set
 # CONFIG_FUSE_FS is not set

    
    Appreciate any help.

Thanks,
Gun
��.n��������+%������w��{.n����z+�����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f





[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux