Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757625Ab0G2O1X (ORCPT ); Thu, 29 Jul 2010 10:27:23 -0400 Received: from cantor2.suse.de ([195.135.220.15]:33899 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757582Ab0G2O1V (ORCPT ); Thu, 29 Jul 2010 10:27:21 -0400 Date: Thu, 29 Jul 2010 16:26:50 +0200 From: Jan Kara To: Vladislav Bolkhovitin Cc: Christoph Hellwig , "Ted Ts'o" , Tejun Heo , Vivek Goyal , Jan Kara , jaxboe@fusionio.com, James.Bottomley@suse.de, linux-fsdevel@vger.kernel.org, linux-scsi@vger.kernel.org, chris.mason@oracle.com, swhiteho@redhat.com, konishi.ryusuke@lab.ntt.co.jp, linux-kernel@vger.kernel.org, kernel-bugs@lists.ubuntu.com Subject: Re: extfs reliability Message-ID: <20100729142650.GA12690@quack.suse.cz> References: <20100728082447.GA7668@lst.de> <4C4FECFE.9040509@kernel.org> <20100728085048.GA8884@lst.de> <4C4FF136.5000205@kernel.org> <20100728090025.GA9252@lst.de> <4C4FF592.9090800@kernel.org> <20100728092859.GA11096@lst.de> <20100729014431.GD4506@thunk.org> <20100729083142.GA30077@lst.de> <4C517B5A.3020905@vlnb.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C517B5A.3020905@vlnb.net> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 25718 Lines: 330 On Thu 29-07-10 17:00:10, Vladislav Bolkhovitin wrote: > Christoph Hellwig, on 07/29/2010 12:31 PM wrote: > > My reading of the ext3/jbd code we explicitly wait on I/O completion > > of dependent writes, and only require those to actually be stable > > by issueing a flush. If that wasn't the case the default ext3 > > barriers off behaviour would not only be dangerous on devices with > > volatile write caches, but also on devices that do not have them, > > which in addition to the reading of the code is not what we've seen > > in actual power fail testing, where ext3 does well as long as there > > is no volatile write cache. > > Basically, it is so, but, unfortunately, not absolutely. I've just tried > 2 tests on ext4 with iSCSI: > > # uname -a > Linux ini 2.6.32-22-386 #36-Ubuntu SMP Fri Jun 4 00:27:09 UTC 2010 i686 GNU/Linux > > # e2fsck -f -y /dev/sdb > e2fsck 1.41.11 (14-Mar-2010) > Pass 1: Checking inodes, blocks, and sizes > Pass 2: Checking directory structure > Pass 3: Checking directory connectivity > Pass 4: Checking reference counts > Pass 5: Checking group summary information > /dev/sdb: 49/640000 files (0.0% non-contiguous), 56496/1280000 blocks > root@ini:~# mount -t ext4 -o barrier=1 /dev/sdb /mnt > root@ini:~# cd /mnt/dbench-mod/ > root@ini:/mnt/dbench-mod# ./dbench 50 > 50 clients started > ... > <-- Pull cable > <-- After sometime a lot of warnings like: > (22002) open CLIENTS/CLIENT44/~DMTMP/COREL/CDRBARS.CFG failed for handle 4235 (Read-only file system) > (22004) open CLIENTS/CLIENT44/~DMTMP/COREL/ARTISTIC.ACL failed for handle 4236 (Read-only file system) ... These are OK. You pulled a cable and now you start getting EIO from the kernel. > root@ini:/mnt/dbench-mod# ^C > root@ini:/mnt/dbench-mod# ^C > root@ini:~# umount /mnt > Segmentation fault This isn't OK of course ;) > Kernel log: > > Jul 29 19:55:35 ini kernel: [ 3044.722313] c2c28e40: 00023740 00023741 00023742 00023743 @7..A7..B7..C7.. > Jul 29 19:55:35 ini kernel: [ 3044.722320] c2c28e50: 00023744 00023745 00023746 00023747 D7..E7..F7..G7.. > Jul 29 19:55:35 ini kernel: [ 3044.722327] c2c28e60: 00023748 00023749 0002374a 0002374b H7..I7..J7..K7.. > Jul 29 19:55:35 ini kernel: [ 3044.722334] c2c28e70: 0002372c 00000000 00000000 00000000 ,7.............. > Jul 29 19:55:35 ini kernel: [ 3044.722341] c2c28e80: 00000000 00000000 00000000 00000002 ................ ... Sadly these messages above seem to have overwritten beginning of the message below. Hmm, but maybe it's just a warning message about inode still being on orphan list because the next oops still shows untainted kernel. > Jul 29 19:55:35 ini kernel: [ 3044.722546] Pid: 1299, comm: umount Not tainted 2.6.32-22-386 #36-Ubuntu > Jul 29 19:55:35 ini kernel: [ 3044.722550] Call Trace: > Jul 29 19:55:35 ini kernel: [ 3044.722567] [] ext4_destroy_inode+0x91/0xa0 > Jul 29 19:55:35 ini kernel: [ 3044.722577] [] destroy_inode+0x24/0x40 > Jul 29 19:55:35 ini kernel: [ 3044.722583] [] dispose_list+0x8e/0x100 > Jul 29 19:55:35 ini kernel: [ 3044.722588] [] invalidate_inodes+0xf4/0x120 > Jul 29 19:55:35 ini kernel: [ 3044.722598] [] ? vfs_quota_off+0x0/0x20 > Jul 29 19:55:35 ini kernel: [ 3044.722606] [] generic_shutdown_super+0x42/0xe0 > Jul 29 19:55:35 ini kernel: [ 3044.722612] [] kill_block_super+0x2a/0x50 > Jul 29 19:55:35 ini kernel: [ 3044.722618] [] deactivate_super+0x64/0x90 > Jul 29 19:55:35 ini kernel: [ 3044.722625] [] mntput_no_expire+0x8f/0xe0 > Jul 29 19:55:35 ini kernel: [ 3044.722631] [] sys_umount+0x47/0xa0 > Jul 29 19:55:35 ini kernel: [ 3044.722636] [] sys_oldumount+0x1e/0x20 > Jul 29 19:55:35 ini kernel: [ 3044.722643] [] syscall_call+0x7/0xb > Jul 29 19:55:35 ini kernel: [ 3044.731043] sd 6:0:0:0: [sdb] Unhandled error code > Jul 29 19:55:35 ini kernel: [ 3044.731049] sd 6:0:0:0: [sdb] Result: hostbyte=DID_TRANSPORT_FAILFAST driverbyte=DRIVER_OK > Jul 29 19:55:35 ini kernel: [ 3044.731056] sd 6:0:0:0: [sdb] CDB: Write(10): 2a 00 00 00 00 00 00 00 01 00 > Jul 29 19:55:35 ini kernel: [ 3044.743469] __ratelimit: 37 callbacks suppressed > Jul 29 19:55:35 ini kernel: [ 3044.755695] lost page write due to I/O error on sdb > Jul 29 19:55:36 ini kernel: [ 3044.823044] Modules linked in: crc32c ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi w83627hf hwmon_vid fbcon tileblit font bitblit softcursor ppdev adm1021 i2c_i801 vga16fb vgastate e7xxx_edac psmouse serio_raw parport_pc shpchp edac_core lp parport qla2xxx ohci1394 scsi_transport_fc r8169 sata_via ieee1394 mii scsi_tgt e1000 floppy So here probably starts the real oops. But sadly we are missing the beginning as well. Can you send me disassembly of your ext4_put_super? > Jul 29 19:55:36 ini kernel: [ 3044.823044] > Jul 29 19:55:36 ini kernel: [ 3044.823044] Pid: 1299, comm: umount Not tainted (2.6.32-22-386 #36-Ubuntu) X5DPA > Jul 29 19:55:36 ini kernel: [ 3044.823044] EIP: 0060:[] EFLAGS: 00010206 CPU: 0 > Jul 29 19:55:36 ini kernel: [ 3044.823044] EIP is at ext4_put_super+0x2ea/0x350 > Jul 29 19:55:36 ini kernel: [ 3044.823044] EAX: c2c28ea8 EBX: c307f000 ECX: ffffff52 EDX: c307f138 > Jul 29 19:55:36 ini kernel: [ 3044.823044] ESI: ca228a00 EDI: c307f0fc EBP: cec6ff30 ESP: cec6fefc > Jul 29 19:55:36 ini kernel: [ 3044.823044] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 > Jul 29 19:55:36 ini kernel: [ 3044.823044] c06bb054 ca228b64 0000800b c2c28ec8 00008180 00000001 00000000 c307f138 > Jul 29 19:55:36 ini kernel: [ 3044.823044] <0> c307f138 c307f138 ca228a00 c0593c80 c023b310 cec6ff48 c01fc60d ca228ac0 > Jul 29 19:55:36 ini kernel: [ 3044.823044] <0> cec6ff44 cf328400 00000003 cec6ff58 c01fc6ca ca228a00 c0759d80 cec6ff6c > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? vfs_quota_off+0x0/0x20 > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? generic_shutdown_super+0x4d/0xe0 > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? kill_block_super+0x2a/0x50 > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? deactivate_super+0x64/0x90 > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? mntput_no_expire+0x8f/0xe0 > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? sys_umount+0x47/0xa0 > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? sys_oldumount+0x1e/0x20 > Jul 29 19:55:36 ini kernel: [ 3044.823044] [] ? syscall_call+0x7/0xb > Jul 29 19:55:36 ini kernel: [ 3045.299442] ---[ end trace 426db011a0289db3 ]--- ... > Another test. Everything is as before, only I did not pull the cable, but > deleted the corresponding LUN on the target, so all the command starting > from this moment failed. Then on umount system rebooted. Kernel log: Nasty. But the log actually contains only traces of processes in D state (generally waiting for a page to be unlocked). Do you have any sort of watchdog which might have rebooted the machine? > Jul 29 20:20:42 ini kernel: [ 1320.251393] umount D 00478e55 0 1234 924 0x00000000 > Jul 29 20:20:42 ini kernel: [ 1320.251403] ce579e10 00000086 00000082 00478e55 00000000 c082b330 cef574dc c082b330 > Jul 29 20:20:42 ini kernel: [ 1320.251415] c082b330 c082b330 cef574dc 0355459b 0000010d c082b330 c082b330 ce652000 > Jul 29 20:20:42 ini kernel: [ 1320.251425] 0000010d cef57230 c1407330 cef57230 ce579e5c ce579e20 c057745a ce579e54 > Jul 29 20:20:42 ini kernel: [ 1320.251436] Call Trace: > Jul 29 20:20:42 ini kernel: [ 1320.251452] [] io_schedule+0x3a/0x60 > Jul 29 20:20:42 ini kernel: [ 1320.251463] [] sync_page+0x3d/0x50 > Jul 29 20:20:42 ini kernel: [ 1320.251470] [] __wait_on_bit_lock+0x47/0x90 > Jul 29 20:20:42 ini kernel: [ 1320.251476] [] ? sync_page+0x0/0x50 > Jul 29 20:20:42 ini kernel: [ 1320.251483] [] __lock_page+0x7e/0x90 > Jul 29 20:20:42 ini kernel: [ 1320.251491] [] ? wake_bit_function+0x0/0x50 > Jul 29 20:20:42 ini kernel: [ 1320.251499] [] truncate_inode_pages_range+0x2a9/0x2c0 > Jul 29 20:20:42 ini kernel: [ 1320.251510] [] ? ext4_destroy_inode+0x26/0xa0 > Jul 29 20:20:42 ini kernel: [ 1320.251517] [] truncate_inode_pages+0x1f/0x30 > Jul 29 20:20:42 ini kernel: [ 1320.251523] [] dispose_list+0xcc/0x100 > Jul 29 20:20:42 ini kernel: [ 1320.251529] [] invalidate_inodes+0xf4/0x120 > Jul 29 20:20:42 ini kernel: [ 1320.251538] [] ? vfs_quota_off+0x0/0x20 > Jul 29 20:20:42 ini kernel: [ 1320.251546] [] generic_shutdown_super+0x42/0xe0 > Jul 29 20:20:42 ini kernel: [ 1320.251553] [] kill_block_super+0x2a/0x50 > Jul 29 20:20:42 ini kernel: [ 1320.251559] [] deactivate_super+0x64/0x90 > Jul 29 20:20:42 ini kernel: [ 1320.251566] [] mntput_no_expire+0x8f/0xe0 > Jul 29 20:20:42 ini kernel: [ 1320.251573] [] sys_umount+0x47/0xa0 > Jul 29 20:20:42 ini kernel: [ 1320.251579] [] sys_oldumount+0x1e/0x20 > Jul 29 20:20:42 ini kernel: [ 1320.251586] [] syscall_call+0x7/0xb > Jul 29 20:22:42 ini kernel: [ 1440.285910] umount D 00478e55 0 1234 924 0x00000004 > Jul 29 20:22:42 ini kernel: [ 1440.285919] ce579e10 00000086 00000082 00478e55 00000000 c082b330 cef574dc c082b330 > Jul 29 20:22:42 ini kernel: [ 1440.285931] c082b330 c082b330 cef574dc 0355459b 0000010d c082b330 c082b330 ce652000 > Jul 29 20:22:42 ini kernel: [ 1440.285942] 0000010d cef57230 c1407330 cef57230 ce579e5c ce579e20 c057745a ce579e54 > Jul 29 20:22:42 ini kernel: [ 1440.285953] Call Trace: > Jul 29 20:22:42 ini kernel: [ 1440.285969] [] io_schedule+0x3a/0x60 > Jul 29 20:22:42 ini kernel: [ 1440.285980] [] sync_page+0x3d/0x50 > Jul 29 20:22:42 ini kernel: [ 1440.285987] [] __wait_on_bit_lock+0x47/0x90 > Jul 29 20:22:42 ini kernel: [ 1440.285994] [] ? sync_page+0x0/0x50 > Jul 29 20:22:42 ini kernel: [ 1440.286001] [] __lock_page+0x7e/0x90 > Jul 29 20:22:42 ini kernel: [ 1440.286010] [] ? wake_bit_function+0x0/0x50 > Jul 29 20:22:42 ini kernel: [ 1440.286018] [] truncate_inode_pages_range+0x2a9/0x2c0 > Jul 29 20:22:42 ini kernel: [ 1440.286028] [] ? ext4_destroy_inode+0x26/0xa0 > Jul 29 20:22:42 ini kernel: [ 1440.286035] [] truncate_inode_pages+0x1f/0x30 > Jul 29 20:22:42 ini kernel: [ 1440.286041] [] dispose_list+0xcc/0x100 > Jul 29 20:22:42 ini kernel: [ 1440.286047] [] invalidate_inodes+0xf4/0x120 > Jul 29 20:22:42 ini kernel: [ 1440.286056] [] ? vfs_quota_off+0x0/0x20 > Jul 29 20:22:42 ini kernel: [ 1440.286064] [] generic_shutdown_super+0x42/0xe0 > Jul 29 20:22:42 ini kernel: [ 1440.286071] [] kill_block_super+0x2a/0x50 > Jul 29 20:22:42 ini kernel: [ 1440.286077] [] deactivate_super+0x64/0x90 > Jul 29 20:22:42 ini kernel: [ 1440.286084] [] mntput_no_expire+0x8f/0xe0 > Jul 29 20:22:42 ini kernel: [ 1440.286091] [] sys_umount+0x47/0xa0 > Jul 29 20:22:42 ini kernel: [ 1440.286097] [] sys_oldumount+0x1e/0x20 > Jul 29 20:22:42 ini kernel: [ 1440.286104] [] syscall_call+0x7/0xb > Jul 29 20:24:42 ini kernel: [ 1560.321709] umount D 00478e55 0 1234 924 0x00000004 > Jul 29 20:24:42 ini kernel: [ 1560.321718] ce579e10 00000086 00000082 00478e55 00000000 c082b330 cef574dc c082b330 > Jul 29 20:24:42 ini kernel: [ 1560.321730] c082b330 c082b330 cef574dc 0355459b 0000010d c082b330 c082b330 ce652000 > Jul 29 20:24:42 ini kernel: [ 1560.321741] 0000010d cef57230 c1407330 cef57230 ce579e5c ce579e20 c057745a ce579e54 > Jul 29 20:24:42 ini kernel: [ 1560.321751] Call Trace: > Jul 29 20:24:42 ini kernel: [ 1560.321767] [] io_schedule+0x3a/0x60 > Jul 29 20:24:42 ini kernel: [ 1560.321777] [] sync_page+0x3d/0x50 > Jul 29 20:24:42 ini kernel: [ 1560.321784] [] __wait_on_bit_lock+0x47/0x90 > Jul 29 20:24:42 ini kernel: [ 1560.321791] [] ? sync_page+0x0/0x50 > Jul 29 20:24:42 ini kernel: [ 1560.321797] [] __lock_page+0x7e/0x90 > Jul 29 20:24:42 ini kernel: [ 1560.321805] [] ? wake_bit_function+0x0/0x50 > Jul 29 20:24:42 ini kernel: [ 1560.321814] [] truncate_inode_pages_range+0x2a9/0x2c0 > Jul 29 20:24:42 ini kernel: [ 1560.321824] [] ? ext4_destroy_inode+0x26/0xa0 > Jul 29 20:24:42 ini kernel: [ 1560.321831] [] truncate_inode_pages+0x1f/0x30 > Jul 29 20:24:42 ini kernel: [ 1560.321837] [] dispose_list+0xcc/0x100 > Jul 29 20:24:42 ini kernel: [ 1560.321845] [] invalidate_inodes+0xf4/0x120 > Jul 29 20:24:42 ini kernel: [ 1560.321855] [] ? vfs_quota_off+0x0/0x20 > Jul 29 20:24:42 ini kernel: [ 1560.321864] [] generic_shutdown_super+0x42/0xe0 > Jul 29 20:24:42 ini kernel: [ 1560.321870] [] kill_block_super+0x2a/0x50 > Jul 29 20:24:42 ini kernel: [ 1560.321877] [] deactivate_super+0x64/0x90 > Jul 29 20:24:42 ini kernel: [ 1560.321885] [] mntput_no_expire+0x8f/0xe0 > Jul 29 20:24:42 ini kernel: [ 1560.321892] [] sys_umount+0x47/0xa0 > Jul 29 20:24:42 ini kernel: [ 1560.321898] [] sys_oldumount+0x1e/0x20 > Jul 29 20:24:42 ini kernel: [ 1560.321905] [] syscall_call+0x7/0xb > Jul 29 20:24:42 ini kernel: [ 1560.358795] sync D 0004beb0 0 1265 1255 0x00000004 > Jul 29 20:24:42 ini kernel: [ 1560.358803] cea6ff2c 00000086 00000001 0004beb0 00000000 c082b330 cde3db7c c082b330 > Jul 29 20:24:42 ini kernel: [ 1560.358815] c082b330 c082b330 cde3db7c 15c42f3f 00000140 c082b330 c082b330 ce653200 > Jul 29 20:24:42 ini kernel: [ 1560.358826] 00000140 cde3d8d0 cea6ff60 cde3d8d0 cefef23c cea6ff58 c0578de5 fffeffff > Jul 29 20:24:42 ini kernel: [ 1560.358837] Call Trace: > Jul 29 20:24:42 ini kernel: [ 1560.358845] [] rwsem_down_failed_common+0x75/0x1a0 > Jul 29 20:24:42 ini kernel: [ 1560.358852] [] rwsem_down_read_failed+0x1d/0x30 > Jul 29 20:24:42 ini kernel: [ 1560.358858] [] call_rwsem_down_read_failed+0x7/0x10 > Jul 29 20:24:42 ini kernel: [ 1560.358863] [] ? down_read+0x1c/0x20 > Jul 29 20:24:42 ini kernel: [ 1560.358870] [] sync_filesystems+0xbd/0x110 > Jul 29 20:24:42 ini kernel: [ 1560.358876] [] sys_sync+0x16/0x40 > Jul 29 20:24:42 ini kernel: [ 1560.358881] [] syscall_call+0x7/0xb > Jul 29 20:26:42 ini kernel: [ 1680.392190] umount D 00478e55 0 1234 924 0x00000004 > Jul 29 20:26:42 ini kernel: [ 1680.392200] ce579e10 00000086 00000082 00478e55 00000000 c082b330 cef574dc c082b330 > Jul 29 20:26:42 ini kernel: [ 1680.392212] c082b330 c082b330 cef574dc 0355459b 0000010d c082b330 c082b330 ce652000 > Jul 29 20:26:42 ini kernel: [ 1680.392223] 0000010d cef57230 c1407330 cef57230 ce579e5c ce579e20 c057745a ce579e54 > Jul 29 20:26:42 ini kernel: [ 1680.392233] Call Trace: > Jul 29 20:26:42 ini kernel: [ 1680.392250] [] io_schedule+0x3a/0x60 > Jul 29 20:26:42 ini kernel: [ 1680.392260] [] sync_page+0x3d/0x50 > Jul 29 20:26:42 ini kernel: [ 1680.392267] [] __wait_on_bit_lock+0x47/0x90 > Jul 29 20:26:42 ini kernel: [ 1680.392274] [] ? sync_page+0x0/0x50 > Jul 29 20:26:42 ini kernel: [ 1680.392280] [] __lock_page+0x7e/0x90 > Jul 29 20:26:42 ini kernel: [ 1680.392289] [] ? wake_bit_function+0x0/0x50 > Jul 29 20:26:42 ini kernel: [ 1680.392298] [] truncate_inode_pages_range+0x2a9/0x2c0 > Jul 29 20:26:42 ini kernel: [ 1680.392308] [] ? ext4_destroy_inode+0x26/0xa0 > Jul 29 20:26:42 ini kernel: [ 1680.392314] [] truncate_inode_pages+0x1f/0x30 > Jul 29 20:26:42 ini kernel: [ 1680.392321] [] dispose_list+0xcc/0x100 > Jul 29 20:26:42 ini kernel: [ 1680.392327] [] invalidate_inodes+0xf4/0x120 > Jul 29 20:26:42 ini kernel: [ 1680.392336] [] ? vfs_quota_off+0x0/0x20 > Jul 29 20:26:42 ini kernel: [ 1680.392344] [] generic_shutdown_super+0x42/0xe0 > Jul 29 20:26:42 ini kernel: [ 1680.392351] [] kill_block_super+0x2a/0x50 > Jul 29 20:26:42 ini kernel: [ 1680.392357] [] deactivate_super+0x64/0x90 > Jul 29 20:26:42 ini kernel: [ 1680.392364] [] mntput_no_expire+0x8f/0xe0 > Jul 29 20:26:42 ini kernel: [ 1680.392371] [] sys_umount+0x47/0xa0 > Jul 29 20:26:42 ini kernel: [ 1680.392378] [] sys_oldumount+0x1e/0x20 > Jul 29 20:26:42 ini kernel: [ 1680.392384] [] syscall_call+0x7/0xb > Jul 29 20:26:42 ini kernel: [ 1680.427874] sync D 0004beb0 0 1265 1255 0x00000004 > Jul 29 20:26:42 ini kernel: [ 1680.427883] cea6ff2c 00000086 00000001 0004beb0 00000000 c082b330 cde3db7c c082b330 > Jul 29 20:26:42 ini kernel: [ 1680.427894] c082b330 c082b330 cde3db7c 15c42f3f 00000140 c082b330 c082b330 ce653200 > Jul 29 20:26:42 ini kernel: [ 1680.427904] 00000140 cde3d8d0 cea6ff60 cde3d8d0 cefef23c cea6ff58 c0578de5 fffeffff > Jul 29 20:26:42 ini kernel: [ 1680.427915] Call Trace: > Jul 29 20:26:42 ini kernel: [ 1680.427922] [] rwsem_down_failed_common+0x75/0x1a0 > Jul 29 20:26:42 ini kernel: [ 1680.427929] [] rwsem_down_read_failed+0x1d/0x30 > Jul 29 20:26:42 ini kernel: [ 1680.427935] [] call_rwsem_down_read_failed+0x7/0x10 > Jul 29 20:26:42 ini kernel: [ 1680.427940] [] ? down_read+0x1c/0x20 > Jul 29 20:26:42 ini kernel: [ 1680.427947] [] sync_filesystems+0xbd/0x110 > Jul 29 20:26:42 ini kernel: [ 1680.427953] [] sys_sync+0x16/0x40 > Jul 29 20:26:42 ini kernel: [ 1680.427958] [] syscall_call+0x7/0xb > Jul 29 20:28:42 ini kernel: [ 1800.458856] umount D 00478e55 0 1234 924 0x00000004 > Jul 29 20:28:42 ini kernel: [ 1800.458866] ce579e10 00000086 00000082 00478e55 00000000 c082b330 cef574dc c082b330 > Jul 29 20:28:42 ini kernel: [ 1800.458877] c082b330 c082b330 cef574dc 0355459b 0000010d c082b330 c082b330 ce652000 > Jul 29 20:28:42 ini kernel: [ 1800.458888] 0000010d cef57230 c1407330 cef57230 ce579e5c ce579e20 c057745a ce579e54 > Jul 29 20:28:42 ini kernel: [ 1800.458899] Call Trace: > Jul 29 20:28:42 ini kernel: [ 1800.458915] [] io_schedule+0x3a/0x60 > Jul 29 20:28:42 ini kernel: [ 1800.458925] [] sync_page+0x3d/0x50 > Jul 29 20:28:42 ini kernel: [ 1800.458932] [] __wait_on_bit_lock+0x47/0x90 > Jul 29 20:28:42 ini kernel: [ 1800.458938] [] ? sync_page+0x0/0x50 > Jul 29 20:28:42 ini kernel: [ 1800.458945] [] __lock_page+0x7e/0x90 > Jul 29 20:28:42 ini kernel: [ 1800.458953] [] ? wake_bit_function+0x0/0x50 > Jul 29 20:28:42 ini kernel: [ 1800.458961] [] truncate_inode_pages_range+0x2a9/0x2c0 > Jul 29 20:28:42 ini kernel: [ 1800.458971] [] ? ext4_destroy_inode+0x26/0xa0 > Jul 29 20:28:42 ini kernel: [ 1800.458978] [] truncate_inode_pages+0x1f/0x30 > Jul 29 20:28:42 ini kernel: [ 1800.458984] [] dispose_list+0xcc/0x100 > Jul 29 20:28:42 ini kernel: [ 1800.458991] [] invalidate_inodes+0xf4/0x120 > Jul 29 20:28:42 ini kernel: [ 1800.458999] [] ? vfs_quota_off+0x0/0x20 > Jul 29 20:28:42 ini kernel: [ 1800.459007] [] generic_shutdown_super+0x42/0xe0 > Jul 29 20:28:42 ini kernel: [ 1800.459013] [] kill_block_super+0x2a/0x50 > Jul 29 20:28:42 ini kernel: [ 1800.459020] [] deactivate_super+0x64/0x90 > Jul 29 20:28:42 ini kernel: [ 1800.459027] [] mntput_no_expire+0x8f/0xe0 > Jul 29 20:28:42 ini kernel: [ 1800.459033] [] sys_umount+0x47/0xa0 > Jul 29 20:28:42 ini kernel: [ 1800.459039] [] sys_oldumount+0x1e/0x20 > Jul 29 20:28:42 ini kernel: [ 1800.459046] [] syscall_call+0x7/0xb > Jul 29 20:28:42 ini kernel: [ 1800.493768] sync D 0004beb0 0 1265 1255 0x00000004 > Jul 29 20:28:42 ini kernel: [ 1800.493777] cea6ff2c 00000086 00000001 0004beb0 00000000 c082b330 cde3db7c c082b330 > Jul 29 20:28:42 ini kernel: [ 1800.493788] c082b330 c082b330 cde3db7c 15c42f3f 00000140 c082b330 c082b330 ce653200 > Jul 29 20:28:42 ini kernel: [ 1800.493798] 00000140 cde3d8d0 cea6ff60 cde3d8d0 cefef23c cea6ff58 c0578de5 fffeffff > Jul 29 20:28:42 ini kernel: [ 1800.493809] Call Trace: > Jul 29 20:28:42 ini kernel: [ 1800.493816] [] rwsem_down_failed_common+0x75/0x1a0 > Jul 29 20:28:42 ini kernel: [ 1800.493823] [] rwsem_down_read_failed+0x1d/0x30 > Jul 29 20:28:42 ini kernel: [ 1800.493828] [] call_rwsem_down_read_failed+0x7/0x10 > Jul 29 20:28:42 ini kernel: [ 1800.493834] [] ? down_read+0x1c/0x20 > Jul 29 20:28:42 ini kernel: [ 1800.493841] [] sync_filesystems+0xbd/0x110 > Jul 29 20:28:42 ini kernel: [ 1800.493847] [] sys_sync+0x16/0x40 > Jul 29 20:28:42 ini kernel: [ 1800.493853] [] syscall_call+0x7/0xb > Jul 29 20:30:42 ini kernel: [ 1920.526729] umount D 00478e55 0 1234 924 0x00000004 > Jul 29 20:30:42 ini kernel: [ 1920.526739] ce579e10 00000086 00000082 00478e55 00000000 c082b330 cef574dc c082b330 > Jul 29 20:30:42 ini kernel: [ 1920.526750] c082b330 c082b330 cef574dc 0355459b 0000010d c082b330 c082b330 ce652000 > Jul 29 20:30:42 ini kernel: [ 1920.526761] 0000010d cef57230 c1407330 cef57230 ce579e5c ce579e20 c057745a ce579e54 > Jul 29 20:30:42 ini kernel: [ 1920.526772] Call Trace: > Jul 29 20:30:42 ini kernel: [ 1920.526788] [] io_schedule+0x3a/0x60 > Jul 29 20:30:42 ini kernel: [ 1920.526798] [] sync_page+0x3d/0x50 > Jul 29 20:30:42 ini kernel: [ 1920.526805] [] __wait_on_bit_lock+0x47/0x90 > Jul 29 20:30:42 ini kernel: [ 1920.526813] [] ? sync_page+0x0/0x50 > Jul 29 20:30:42 ini kernel: [ 1920.526819] [] __lock_page+0x7e/0x90 > Jul 29 20:30:42 ini kernel: [ 1920.526827] [] ? wake_bit_function+0x0/0x50 > Jul 29 20:30:42 ini kernel: [ 1920.526836] [] truncate_inode_pages_range+0x2a9/0x2c0 > Jul 29 20:30:42 ini kernel: [ 1920.526845] [] ? ext4_destroy_inode+0x26/0xa0 > Jul 29 20:30:42 ini kernel: [ 1920.526853] [] truncate_inode_pages+0x1f/0x30 > Jul 29 20:30:42 ini kernel: [ 1920.526859] [] dispose_list+0xcc/0x100 > Jul 29 20:30:42 ini kernel: [ 1920.526866] [] invalidate_inodes+0xf4/0x120 > Jul 29 20:30:42 ini kernel: [ 1920.526874] [] ? vfs_quota_off+0x0/0x20 > Jul 29 20:30:42 ini kernel: [ 1920.526882] [] generic_shutdown_super+0x42/0xe0 > Jul 29 20:30:42 ini kernel: [ 1920.526889] [] kill_block_super+0x2a/0x50 > Jul 29 20:30:42 ini kernel: [ 1920.526895] [] deactivate_super+0x64/0x90 > Jul 29 20:30:42 ini kernel: [ 1920.526902] [] mntput_no_expire+0x8f/0xe0 > Jul 29 20:30:42 ini kernel: [ 1920.526908] [] sys_umount+0x47/0xa0 > Jul 29 20:30:42 ini kernel: [ 1920.526915] [] sys_oldumount+0x1e/0x20 > Jul 29 20:30:42 ini kernel: [ 1920.526922] [] syscall_call+0x7/0xb > Jul 29 20:30:42 ini kernel: [ 1920.563739] sync D 0004beb0 0 1265 1255 0x00000004 > Jul 29 20:30:42 ini kernel: [ 1920.563747] cea6ff2c 00000086 00000001 0004beb0 00000000 c082b330 cde3db7c c082b330 > Jul 29 20:30:42 ini kernel: [ 1920.563758] c082b330 c082b330 cde3db7c 15c42f3f 00000140 c082b330 c082b330 ce653200 > Jul 29 20:30:42 ini kernel: [ 1920.563768] 00000140 cde3d8d0 cea6ff60 cde3d8d0 cefef23c cea6ff58 c0578de5 fffeffff > Jul 29 20:30:42 ini kernel: [ 1920.563779] Call Trace: > Jul 29 20:30:42 ini kernel: [ 1920.563787] [] rwsem_down_failed_common+0x75/0x1a0 > Jul 29 20:30:42 ini kernel: [ 1920.563793] [] rwsem_down_read_failed+0x1d/0x30 > Jul 29 20:30:42 ini kernel: [ 1920.563799] [] call_rwsem_down_read_failed+0x7/0x10 > Jul 29 20:30:42 ini kernel: [ 1920.563804] [] ? down_read+0x1c/0x20 > Jul 29 20:30:42 ini kernel: [ 1920.563812] [] sync_filesystems+0xbd/0x110 > Jul 29 20:30:42 ini kernel: [ 1920.563817] [] sys_sync+0x16/0x40 > Jul 29 20:30:42 ini kernel: [ 1920.563823] [] syscall_call+0x7/0xb > > Although in both cases the FS remained consistent: Yes, at least something positive in the end ;). > root@ini:~# mount -t ext4 /dev/sdb /mnt > root@ini:~# umount /mnt > root@ini:~# e2fsck -f -y /dev/sdb > e2fsck 1.41.11 (14-Mar-2010) > Pass 1: Checking inodes, blocks, and sizes > Pass 2: Checking directory structure > Pass 3: Checking directory connectivity > Pass 4: Checking reference counts > Pass 5: Checking group summary information > > /dev/sdb: ***** FILE SYSTEM WAS MODIFIED ***** > /dev/sdb: 4194/640000 files (74.2% non-contiguous), 334774/1280000 blocks > > You can find full kernel logs starting from iSCSI load in the attachments. > > I already reported such issues some time ago, but my reports were not too much welcomed, so I gave up. Anyway, anybody can easily do my tests at any time. They don't need any special hardware, just 2 Linux boxes: one for iSCSI target and one for iSCSI initiator (the test box itself). But they are generic for other transports as well. You can see there's nothing iSCSI specific in the traces. Thanks for running the test. Honza -- Jan Kara SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/