Commit edfb76af authored by Anton Altaparmakov's avatar Anton Altaparmakov

Fix&improve debugging checks in async io completion handlers.

Beffers marked for async io must be locked!
parent 484f2a9c
......@@ -519,8 +519,7 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate)
if (buffer_async_read(tmp)) {
if (buffer_locked(tmp))
goto still_busy;
if (!buffer_mapped(bh))
BUG();
BUG();
}
tmp = tmp->b_this_page;
} while (tmp != bh);
......@@ -570,8 +569,7 @@ static void end_buffer_async_write(struct buffer_head *bh, int uptodate)
if (buffer_async_write(tmp)) {
if (buffer_locked(tmp))
goto still_busy;
if (!buffer_mapped(bh))
BUG();
BUG();
}
tmp = tmp->b_this_page;
}
......
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