Commit 26540c31 authored by Christoph Hellwig's avatar Christoph Hellwig

[XFS] Don't dereference buffer after pagebuf_iostrategy()

SGI Modid: xfs-linux:xfs-kern:174326a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 8aac9bdd
......@@ -1614,6 +1614,7 @@ pagebuf_daemon(
{
struct list_head tmp;
unsigned long age;
xfs_buftarg_t *target;
xfs_buf_t *pb, *n;
/* Set up the thread */
......@@ -1656,9 +1657,12 @@ pagebuf_daemon(
while (!list_empty(&tmp)) {
pb = list_entry(tmp.next, xfs_buf_t, pb_list);
target = pb->pb_target;
list_del_init(&pb->pb_list);
pagebuf_iostrategy(pb);
blk_run_address_space(pb->pb_target->pbr_mapping);
blk_run_address_space(target->pbr_mapping);
}
if (as_list_len > 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment