]> git.neil.brown.name Git - history.git/commitdiff
Fix&improve debugging checks in async io completion handlers.
authorAnton Altaparmakov <aia21@cantab.net>
Mon, 15 Jul 2002 04:57:51 +0000 (05:57 +0100)
committerAnton Altaparmakov <aia21@cantab.net>
Mon, 15 Jul 2002 04:57:51 +0000 (05:57 +0100)
Beffers marked for async io must be locked!

fs/buffer.c

index 3ff70e744ad353715c405f5a19886b32104c2f93..27300f9a6ee0ec2cfa439527d3098e236bf0e1d9 100644 (file)
@@ -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;
        }