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>
Showing
- block/blk-tag.c 25 additions, 8 deletionsblock/blk-tag.c
- drivers/block/osdblk.c 1 addition, 1 deletiondrivers/block/osdblk.c
- drivers/scsi/scsi_scan.c 2 additions, 1 deletiondrivers/scsi/scsi_scan.c
- include/linux/blkdev.h 6 additions, 2 deletionsinclude/linux/blkdev.h
- include/scsi/scsi_host.h 3 additions, 0 deletionsinclude/scsi/scsi_host.h
- include/scsi/scsi_tcq.h 2 additions, 1 deletioninclude/scsi/scsi_tcq.h
Loading
Please register or sign in to comment