Re: [PATCH 11/13] block: Fix oops in locked_inode_to_wb_and_lock_list()

2017-02-28 Thread Tejun Heo
On Tue, Feb 21, 2017 at 06:09:56PM +0100, Jan Kara wrote: > When block device is closed, we call inode_detach_wb() in __blkdev_put() > which sets inode->i_wb to NULL. That is contrary to expectations that > inode->i_wb stays valid once set during the whole inode's lifetime and > leads to oops in

[PATCH 11/13] block: Fix oops in locked_inode_to_wb_and_lock_list()

2017-02-21 Thread Jan Kara
When block device is closed, we call inode_detach_wb() in __blkdev_put() which sets inode->i_wb to NULL. That is contrary to expectations that inode->i_wb stays valid once set during the whole inode's lifetime and leads to oops in wb_get() in locked_inode_to_wb_and_lock_list() because