{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3075","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3075/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3075/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3075/events","html_url":"https://github.com/zfsonlinux/zfs/issues/3075","id":56722214,"number":3075,"title":"BUG: Bad page state in process flush-zfs-1","user":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Bug%20-%20Minor","name":"Bug - Minor","color":"e11d21"},{"url":"https://api.github.com/repos/zfsonlinux/zfs/labels/Difficulty%20-%20Hard","name":"Difficulty - Hard","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/25","html_url":"https://github.com/zfsonlinux/zfs/milestones/0.6.5","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/milestones/25/labels","id":175736,"number":25,"title":"0.6.5","description":"ZFS on Linux v0.6.5 - Functionality / Integration","creator":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":147,"state":"closed","created_at":"2012-09-16T18:38:32Z","updated_at":"2015-10-15T15:58:23Z","due_on":null,"closed_at":"2015-09-21T21:35:59Z"},"comments":23,"created_at":"2015-02-05T20:08:56Z","updated_at":"2015-12-18T22:55:49Z","closed_at":"2015-07-29T14:40:22Z","body":"This was accidentally introduced by d958324f97f4668a2a6e4a6ce3e5ca09b71b31d9 which resolved deadlock in zfs_putpage().  This isn't fatal but the warning is concerning.  It would be useful to hit this on a more modern kernel because newer kernels include a reason describing what was wrong with the page.\r\n\r\n```\r\n[ 1246.877534] SPL: using hostid 0x00000000\r\n[ 1773.434044] BUG: Bad page state in process flush-zfs-16  pfn:76601\r\n[ 1773.434288] page:ffffea0001d98040 count:0 mapcount:0 mapping:          (null) index:0xe\r\n[ 1773.434517] page flags: 0x10000000000200c(referenced|uptodate|writeback)\r\n[ 1773.434654] Modules linked in: zfs(PO) zcommon(PO) znvpair(PO) zavl(PO) zunicode(PO) spl(O) zlib_deflate vesafb aesni_intel cryptd aes_x86_64 virtio_balloon i2c_piix4 mac_hid microcode virtio_console psmouse serio_raw lp parport ext2 raid10 raid456 async_pq async_xor xor async_memcpy async_raid6_recov floppy raid6_pq async_tx virtio_scsi raid1 raid0 multipath linear [last unloaded: scsi_debug]\r\n[ 1773.434696] Pid: 22811, comm: flush-zfs-16 Tainted: P           O 3.5.0-51-generic #76-Ubuntu\r\n[ 1773.434698] Call Trace:\r\n[ 1773.434710]  [<ffffffff81678b4f>] bad_page+0xe6/0xfb\r\n[ 1773.434714]  [<ffffffff8112bf3c>] free_pages_prepare+0xfc/0x110\r\n[ 1773.434717]  [<ffffffff8112c0a7>] free_hot_cold_page+0x47/0x1c0\r\n[ 1773.434731]  [<ffffffff8168ce16>] ? ftrace_call+0x5/0x2b\r\n[ 1773.434734]  [<ffffffff8112c46e>] free_hot_cold_page_list+0x4e/0xa0\r\n[ 1773.434738]  [<ffffffff811309e0>] release_pages+0x1f0/0x230\r\n[ 1773.434742]  [<ffffffff811312b4>] __pagevec_release+0x24/0x40\r\n[ 1773.434745]  [<ffffffff8112e026>] write_cache_pages+0x286/0x460\r\n[ 1773.434799]  [<ffffffffa02e7f20>] ? zpl_readdir+0xb0/0xb0 [zfs]\r\n[ 1773.434837]  [<ffffffffa02e7cd4>] zpl_writepages+0xa4/0x1a0 [zfs]\r\n[ 1773.434841]  [<ffffffff8112f38e>] do_writepages+0x1e/0x40\r\n[ 1773.434850]  [<ffffffff811ac10b>] __writeback_single_inode.isra.32+0x3b/0x160\r\n[ 1773.434857]  [<ffffffff811acf40>] writeback_sb_inodes+0x1a0/0x390\r\n[ 1773.434861]  [<ffffffff811ad1cf>] __writeback_inodes_wb+0x9f/0xd0\r\n[ 1773.434864]  [<ffffffff811ad443>] wb_writeback+0x243/0x2c0\r\n[ 1773.434869]  [<ffffffff8119d6f1>] ? get_nr_inodes+0x51/0x70\r\n[ 1773.434872]  [<ffffffff811ae8cf>] wb_do_writeback+0x1ff/0x210\r\n[ 1773.434876]  [<ffffffff811ae96b>] bdi_writeback_thread+0x8b/0x210\r\n[ 1773.434879]  [<ffffffff811ae8e0>] ? wb_do_writeback+0x210/0x210\r\n[ 1773.434884]  [<ffffffff81076253>] kthread+0x93/0xa0\r\n[ 1773.434888]  [<ffffffff8168e364>] kernel_thread_helper+0x4/0x10\r\n[ 1773.434891]  [<ffffffff810761c0>] ? kthread_freezable_should_stop+0x70/0x70\r\n[ 1773.434894]  [<ffffffff8168e360>] ? gs_change+0x13/0x13\r\n```"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/165915435","html_url":"https://github.com/zfsonlinux/zfs/issues/3075#issuecomment-165915435","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/3075","id":165915435,"user":{"login":"behlendorf","id":148917,"avatar_url":"https://avatars.githubusercontent.com/u/148917?v=3","gravatar_id":"","url":"https://api.github.com/users/behlendorf","html_url":"https://github.com/behlendorf","followers_url":"https://api.github.com/users/behlendorf/followers","following_url":"https://api.github.com/users/behlendorf/following{/other_user}","gists_url":"https://api.github.com/users/behlendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/behlendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behlendorf/subscriptions","organizations_url":"https://api.github.com/users/behlendorf/orgs","repos_url":"https://api.github.com/users/behlendorf/repos","events_url":"https://api.github.com/users/behlendorf/events{/privacy}","received_events_url":"https://api.github.com/users/behlendorf/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T22:55:49Z","updated_at":"2015-12-18T22:55:49Z","body":"@RichardSharpe that's great news."}}