]> git.karo-electronics.de Git - linux-beck.git/commit
block: disallow FS recursion from sb_issue_discard allocation
authorMike Snitzer <snitzer@redhat.com>
Tue, 3 Aug 2010 10:54:51 +0000 (12:54 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:53:04 +0000 (18:53 +0200)
commitedca4a380584a65a16839bdee33ec82244f0f88e
treef0e24d4712cf98eb5876157ae1f49bebc6d701ef
parentf6c4c8e19a087dae7dc651ccbd1ff8b843eedee2
block: disallow FS recursion from sb_issue_discard allocation

Filesystems can call sb_issue_discard on a memory reclaim path
(e.g. ext4 calls sb_issue_discard during journal commit).

Use GFP_NOFS in sb_issue_discard to avoid recursing back into the FS.

Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
include/linux/blkdev.h