blk-mq: uses page->list incorrectly
authorDave Hansen <dave.hansen@linux.intel.com>
Thu, 9 Jan 2014 03:17:46 +0000 (20:17 -0700)
committerJens Axboe <axboe@kernel.dk>
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 <dave.hansen@linux.intel.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c