]> git.neil.brown.name Git - history.git/commit
[PATCH] grab_cache_page_nowait deadlock fix
authorAndrew Morton <akpm@zip.com.au>
Tue, 18 Jun 2002 03:18:02 +0000 (20:18 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 18 Jun 2002 03:18:02 +0000 (20:18 -0700)
commit85bfa7dce791fa3d110bd2551fcad41f52a5bc87
tree93de7938927270b1ffd59fcddf75537b373d4a3a
parent386b1f7440e90f1b1541fc4db4dfcd34b00ccd96
[PATCH] grab_cache_page_nowait deadlock fix

- If grab_cache_page_nowait() is to be called while holding a lock on
  a different page, it must perform memory allocations with GFP_NOFS.
  Otherwise it could come back onto the locked page (if it's dirty) and
  deadlock.

  Also tidy this function up a bit - the checks in there were overly
  paranoid.

- In a few of places, look to see if we can avoid a buslocked cycle
  and dirtying of a cacheline.
mm/filemap.c