block: support different tag allocation policy
authorShaohua Li <shli@fb.com>
Fri, 16 Jan 2015 01:32:25 +0000 (17:32 -0800)
committerJens Axboe <axboe@fb.com>
Fri, 23 Jan 2015 21:15:46 +0000 (14:15 -0700)
commitee1b6f7aff94019c09e73837054979063f722046
tree79c7b943d7c6d62fec1874afd2c50964de054aa0
parentbb5c3cdda37aad22996d6da2addd58cadc0436c0
block: support different tag allocation policy

The libata tag allocation is using a round-robin policy. Next patch will
make libata use block generic tag allocation, so let's add a policy to
tag allocation.

Currently two policies: FIFO (default) and round-robin.

Cc: Jens Axboe <axboe@fb.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-tag.c
drivers/block/osdblk.c
drivers/scsi/scsi_scan.c
include/linux/blkdev.h
include/scsi/scsi_host.h
include/scsi/scsi_tcq.h