{"action":"created","issue":{"url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/75","labels_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/75/comments","events_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/75/events","html_url":"https://github.com/akiradeveloper/dm-writeboost/issues/75","id":96177283,"number":75,"title":"enabling read_cache_threshold results in corrupt xfs filesystem","user":{"login":"disaster123","id":861558,"avatar_url":"https://avatars.githubusercontent.com/u/861558?v=3","gravatar_id":"","url":"https://api.github.com/users/disaster123","html_url":"https://github.com/disaster123","followers_url":"https://api.github.com/users/disaster123/followers","following_url":"https://api.github.com/users/disaster123/following{/other_user}","gists_url":"https://api.github.com/users/disaster123/gists{/gist_id}","starred_url":"https://api.github.com/users/disaster123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/disaster123/subscriptions","organizations_url":"https://api.github.com/users/disaster123/orgs","repos_url":"https://api.github.com/users/disaster123/repos","events_url":"https://api.github.com/users/disaster123/events{/privacy}","received_events_url":"https://api.github.com/users/disaster123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-07-20T22:27:15Z","updated_at":"2015-07-22T12:20:22Z","closed_at":null,"body":"Today i enabled read_cache_threshold on one of my wb devices. I set it to 10. While it was working fine under stress for around some minutes. I got suddently an xfs crash:\r\n\r\nkernel 3.18.18\r\ndm-writeboost: 2.0.5\r\n\r\n```\r\n# dmesg\r\n[95938.294073] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x24656860\r\n[95938.296851] XFS (dm-1): Unmount and run xfs_repair\r\n[95938.298206] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95938.300008] ffff88015506e000: 00 60 3f 5e 05 88 ff ff 00 1f 4e 8a d5 01 26 3b  .`?^......N...&;\r\n[95938.302478] ffff88015506e010: 1f 08 ad d3 82 89 00 38 00 29 96 fd 3e 0b ad d3  .......8.)..>...\r\n[95938.304951] ffff88015506e020: 82 89 01 2e de 1f 08 ad d3 85 1e 00 38 00 29 96  ............8.).\r\n[95938.307419] ffff88015506e030: fd 3e 0b ad d3 85 1e 01 04 99 1f 08 ad d3 83 f4  .>..............\r\n[95939.745623] XFS (dm-1): Metadata corruption detected at xfs_attr3_leaf_read_verify+0x58/0x100, block 0x3a4b7d90\r\n[95939.748500] XFS (dm-1): Unmount and run xfs_repair\r\n[95939.749857] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95939.751660] ffff880154f37000: 00 60 c8 5d 05 88 ff ff b0 8d 56 01 b3 8d 56 01  .`.]......V...V.\r\n[95939.754133] ffff880154f37010: ac 42 0e 00 00 00 00 00 84 3f 00 00 de 4b 01 00  .B.......?...K..\r\n[95939.756615] ffff880154f37020: ec dd 03 00 00 00 00 00 f0 fb 0e 01 00 00 00 00  ................\r\n[95939.759083] ffff880154f37030: b8 01 00 00 00 00 00 00 d4 8d 56 01 d7 8d 56 01  ..........V...V.\r\n[95939.761588] XFS (dm-1): metadata I/O error: block 0x3a4b7d90 (\"xfs_trans_read_buf_map\") error 117 numblks 8\r\n[95976.399867] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x20bf9b20\r\n[95976.402652] XFS (dm-1): Unmount and run xfs_repair\r\n[95976.404020] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95976.405832] ffff8804d96e3000: 00 50 78 5e 05 88 ff ff 00 40 78 5e 05 88 ff ff  .Px^.....@x^....\r\n[95976.408371] ffff8804d96e3010: c0 51 8a 1e 00 ea ff ff 0a 17 89 0c 00 00 00 00  .Q..............\r\n[95976.410903] ffff8804d96e3020: 00 10 00 00 00 00 00 00 00 70 94 a2 07 88 ff ff  .........p......\r\n[95976.413426] ffff8804d96e3030: 00 00 00 00 00 00 00 00 b0 43 1d 81 ff ff ff ff  .........C......\r\n[95976.785956] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x2bac5db8\r\n[95976.788755] XFS (dm-1): Unmount and run xfs_repair\r\n[95976.790130] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95976.791951] ffff88044718e000: 00 30 c0 5d 05 88 ff ff 2b 30 32 30 30 5d 20 22  .0.]....+0200] \"\r\n[95976.794443] ffff88044718e010: 47 45 54 20 2f 6d 75 6e 69 6e 2e 70 68 70 3f 61  GET /munin.php?a\r\n[95976.796922] ffff88044718e020: 63 74 3d 75 73 65 72 26 69 6e 66 6f 74 79 70 65  ct=user&infotype\r\n[95976.799429] ffff88044718e030: 3d 69 6d 70 6f 72 74 26 6d 65 74 72 69 63 3d 6c  =import&metric=l\r\n[95976.801920] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x5070c6e8\r\n[95976.804708] XFS (dm-1): Unmount and run xfs_repair\r\n[95976.872730] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95976.942624] ffff88044cb1d000: 00 60 16 67 05 88 ff ff 05 04 80 00 00 cb 19 f8  .`.g............\r\n[95977.012846] ffff88044cb1d010: 1a 28 0b 81 10 8b a1 04 80 04 0e c8 04 80 00 00  .(..............\r\n[95977.082158] ffff88044cb1d020: 05 04 80 00 00 cb 1a 10 1a 40 0b 81 11 8b a1 04  .........@......\r\n[95977.150641] ffff88044cb1d030: 80 04 0e c9 04 80 00 00 05 04 80 00 00 f6 1a 28  ...............(\r\n[95977.218665] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x5afb3608\r\n[95977.288262] XFS (dm-1): Unmount and run xfs_repair\r\n[95977.358089] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95977.428754] ffff880132173000: 00 d0 1c 5e 05 88 ff ff 5c 20 44 4e 42 2e 54 fd  ...^....\\ DNB.T.\r\n[95977.500243] ffff880132173010: 21 df 77 1c cf 21 8e eb bc 5d 5e 59 b1 a5 14 4c  !.w..!...]^Y...L\r\n[95977.570905] ffff880132173020: 33 ab 77 11 31 d1 c5 7b 07 6b 58 c5 4a 49 50 20  3.w.1..{.kX.JIP \r\n[95977.640166] ffff880132173030: 88 4f 7b c7 f5 ed 15 ff f2 ff fc 1f 98 ae af 78  .O{............x\r\n[95983.257777] XFS (dm-1): Metadata corruption detected at xfs_attr3_leaf_read_verify+0x58/0x100, block 0xe9a0218\r\n[95983.328611] XFS (dm-1): Unmount and run xfs_repair\r\n[95983.400309] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95983.473063] ffff880548f62000: 00 90 18 5e 05 88 ff ff 00 00 00 4a 00 00 00 4c  ...^.......J...L\r\n[95983.548458] ffff880548f62010: 00 00 01 e4 f4 8a 81 57 45 bf 00 00 00 00 00 00  .......WE.......\r\n[95983.621875] ffff880548f62020: 00 00 00 00 e7 da 00 1e 3b b3 80 78 00 00 00 00  ........;..x....\r\n[95983.694253] ffff880548f62030: 3b 03 00 02 00 75 00 76 00 00 00 00 00 00 00 00  ;....u.v........\r\n[95983.766257] XFS (dm-1): metadata I/O error: block 0xe9a0218 (\"xfs_trans_read_buf_map\") error 117 numblks 8\r\n[95989.930665] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x20bf9b20\r\n[95990.004105] XFS (dm-1): Unmount and run xfs_repair\r\n[95990.077429] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95990.151300] ffff8804d96e3000: 00 50 78 5e 05 88 ff ff 00 40 78 5e 05 88 ff ff  .Px^.....@x^....\r\n[95990.225420] ffff8804d96e3010: c0 51 8a 1e 00 ea ff ff 0a 17 89 0c 00 00 00 00  .Q..............\r\n[95990.298362] ffff8804d96e3020: 00 10 00 00 00 00 00 00 00 70 94 a2 07 88 ff ff  .........p......\r\n[95990.370934] ffff8804d96e3030: 00 00 00 00 00 00 00 00 b0 43 1d 81 ff ff ff ff  .........C......\r\n[95990.631308] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x20bf9b20\r\n[95990.704211] XFS (dm-1): Unmount and run xfs_repair\r\n[95990.777276] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95990.850972] ffff8804d96e3000: 00 50 78 5e 05 88 ff ff 00 40 78 5e 05 88 ff ff  .Px^.....@x^....\r\n[95990.924943] ffff8804d96e3010: c0 51 8a 1e 00 ea ff ff 0a 17 89 0c 00 00 00 00  .Q..............\r\n[95990.998099] ffff8804d96e3020: 00 10 00 00 00 00 00 00 00 70 94 a2 07 88 ff ff  .........p......\r\n[95991.069935] ffff8804d96e3030: 00 00 00 00 00 00 00 00 b0 43 1d 81 ff ff ff ff  .........C......\r\n[95995.865705] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x20bf9b20\r\n[95995.937752] XFS (dm-1): Unmount and run xfs_repair\r\n[95996.009533] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95996.082211] ffff8804d96e3000: 00 50 78 5e 05 88 ff ff 00 40 78 5e 05 88 ff ff  .Px^.....@x^....\r\n[95996.156996] ffff8804d96e3010: c0 51 8a 1e 00 ea ff ff 0a 17 89 0c 00 00 00 00  .Q..............\r\n[95996.230423] ffff8804d96e3020: 00 10 00 00 00 00 00 00 00 70 94 a2 07 88 ff ff  .........p......\r\n[95996.302791] ffff8804d96e3030: 00 00 00 00 00 00 00 00 b0 43 1d 81 ff ff ff ff  .........C......\r\n[95996.377411] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x20bf9b20\r\n[95996.449649] XFS (dm-1): Unmount and run xfs_repair\r\n[95996.521421] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95996.593812] ffff8804d96e3000: 00 50 78 5e 05 88 ff ff 00 40 78 5e 05 88 ff ff  .Px^.....@x^....\r\n[95996.668008] ffff8804d96e3010: c0 51 8a 1e 00 ea ff ff 0a 17 89 0c 00 00 00 00  .Q..............\r\n[95996.740080] ffff8804d96e3020: 00 10 00 00 00 00 00 00 00 70 94 a2 07 88 ff ff  .........p......\r\n[95996.811287] ffff8804d96e3030: 00 00 00 00 00 00 00 00 b0 43 1d 81 ff ff ff ff  .........C......\r\n[95997.379052] XFS (dm-1): Metadata corruption detected at xfs_attr3_leaf_read_verify+0x58/0x100, block 0x1d1d1c28\r\n[95997.450407] XFS (dm-1): Unmount and run xfs_repair\r\n[95997.521669] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[95997.593521] ffff880139117000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\r\n[95997.667345] ffff880139117010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\r\n[95997.738618] ffff880139117020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\r\n[95997.808093] ffff880139117030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\r\n[95997.876537] XFS (dm-1): metadata I/O error: block 0x1d1d1c28 (\"xfs_trans_read_buf_map\") error 117 numblks 8\r\n[96001.510347] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x5afb3608\r\n[96001.580241] XFS (dm-1): Unmount and run xfs_repair\r\n[96001.650010] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[96001.719972] ffff880132173000: 00 d0 1c 5e 05 88 ff ff 5c 20 44 4e 42 2e 54 fd  ...^....\\ DNB.T.\r\n[96001.790165] ffff880132173010: 21 df 77 1c cf 21 8e eb bc 5d 5e 59 b1 a5 14 4c  !.w..!...]^Y...L\r\n[96001.859299] ffff880132173020: 33 ab 77 11 31 d1 c5 7b 07 6b 58 c5 4a 49 50 20  3.w.1..{.kX.JIP \r\n[96001.928627] ffff880132173030: 88 4f 7b c7 f5 ed 15 ff f2 ff fc 1f 98 ae af 78  .O{............x\r\n[96002.807105] XFS (dm-1): Metadata corruption detected at xfs_allocbt_read_verify+0x89/0xd0, block 0x5754c988\r\n[96002.877195] XFS (dm-1): Unmount and run xfs_repair\r\n[96002.947626] XFS (dm-1): First 64 bytes of corrupted metadata buffer:\r\n[96003.018742] ffff880c2f73f000: 00 50 02 5e 05 88 ff ff 62 38 62 34 35 36 37 2e  .P.^....b8b4567.\r\n[96003.090069] ffff880c2f73f010: 30 30 30 30 30 30 30 30 30 30 30 30 30 61 63 39  0000000000000ac9\r\n[96003.160823] ffff880c2f73f020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\r\n[96003.230659] ffff880c2f73f030: 28 00 00 00 00 00 00 00 28 00 00 00 00 00 00 00  (.......(.......\r\n[96003.299729] XFS (dm-1): metadata I/O error: block 0x5754c988 (\"xfs_trans_read_buf_map\") error 117 numblks 8\r\n[96003.369282] XFS (dm-1): xfs_do_force_shutdown(0x8) called from line 138 of file fs/xfs/xfs_bmap_util.c.  Return address = 0xffffffff81292d18\r\n[96003.374925] XFS (dm-1): Corruption of in-memory data detected.  Shutting down filesystem\r\n[96003.445161] XFS (dm-1): Please umount the filesystem and rectify the problem(s)\r\n´´´"},"comment":{"url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/comments/123701368","html_url":"https://github.com/akiradeveloper/dm-writeboost/issues/75#issuecomment-123701368","issue_url":"https://api.github.com/repos/akiradeveloper/dm-writeboost/issues/75","id":123701368,"user":{"login":"onlyjob","id":1061236,"avatar_url":"https://avatars.githubusercontent.com/u/1061236?v=3","gravatar_id":"","url":"https://api.github.com/users/onlyjob","html_url":"https://github.com/onlyjob","followers_url":"https://api.github.com/users/onlyjob/followers","following_url":"https://api.github.com/users/onlyjob/following{/other_user}","gists_url":"https://api.github.com/users/onlyjob/gists{/gist_id}","starred_url":"https://api.github.com/users/onlyjob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlyjob/subscriptions","organizations_url":"https://api.github.com/users/onlyjob/orgs","repos_url":"https://api.github.com/users/onlyjob/repos","events_url":"https://api.github.com/users/onlyjob/events{/privacy}","received_events_url":"https://api.github.com/users/onlyjob/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T12:20:22Z","updated_at":"2015-07-22T12:20:22Z","body":"I'm not sure about that... IMHO read caching is completely unnecessary. [This is just one of few reasons why](https://github.com/stec-inc/EnhanceIO/issues/97#issuecomment-111878465)..."}}