Brian Behlendorf dfd20b2b17 drivers/block/brd.c: fix brd_lookup_page() race
The index on the page must be set before it is inserted in the radix
tree.  Otherwise there is a small race which can occur during lookup
where the page can be found with the incorrect index.  This will trigger
the BUG_ON() in brd_lookup_page().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reported-by: Chris Wedgwood <cw@f00f.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-05-24 16:22:52 -07:00
..
2013-03-26 14:48:12 -06:00
2013-04-09 14:13:19 -04:00
2011-08-08 11:40:15 +02:00
2013-04-09 14:13:32 -04:00
2012-03-28 18:30:03 +01:00
2013-03-28 14:50:49 -04:00
2013-04-09 14:13:32 -04:00
2009-03-26 21:15:27 +01:00
2013-03-20 15:44:58 +10:30