]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix blk_rq_get_max_sectors for driver private requests
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Mar 2016 21:43:45 +0000 (14:43 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:43:45 +0000 (14:43 -0700)
commitbaa3f8a6291407ac49119d16daf8299634b331dc
tree88eff3b50155c51a210c61b0805f5a9c0daa9a14
parentd6becf5052d83b12cf2c5bcaa3a7a8165dd9bbbb
block: fix blk_rq_get_max_sectors for driver private requests

Driver private request types should not get the artifical cap for the
FS requests.  This is important to use the full device capabilities
for internal command or NVMe pass through commands.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Jeff Lien <Jeff.Lien@hgst.com>
Tested-by: Jeff Lien <Jeff.Lien@hgst.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Updated by me to use an explicit check for the one command type that
does support extended checking, instead of relying on the ordering
of the enum command values - as suggested by Keith.

Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blkdev.h