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,7 +519,6 @@ 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();
}
tmp = tmp->b_this_page;
......@@ -570,7 +569,6 @@ 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();
}
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