blk-mq: uses page->list incorrectly
authorDave Hansen <[email protected]>
Thu, 9 Jan 2014 03:17:46 +0000 (20:17 -0700)
committerJens Axboe <[email protected]>
Thu, 9 Jan 2014 03:17:46 +0000 (20:17 -0700)
commit6753471c0cb4562aebb9c70beb74ccd392d49ee8
tree3f3d62b47427bcd2104f5b345b27ef93874388b9
parent3d6efbf62c797a2924785f482e4ce8aa8820ec72
blk-mq: uses page->list incorrectly

'struct page' has two list_head fields: 'lru' and 'list'.  Conveniently,
they are unioned together.  This means that code can use them
interchangably, which gets horribly confusing.

The blk-mq made the logical decision to try to use page->list.  But, that
field was actually introduced just for the slub code.  ->lru is the right
field to use outside of slab/slub.

Signed-off-by: Dave Hansen <[email protected]>
Acked-by: David Rientjes <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/blk-mq.c