block: have drivers use blk_queue_max_discard_sectors()
authorJens Axboe <axboe@fb.com>
Tue, 14 Jul 2015 14:15:12 +0000 (08:15 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 17 Jul 2015 14:41:53 +0000 (08:41 -0600)
commit2bb4cd5cc472b191a46938becb7dafdd44644329
tree8fabaacb2c5aebf2cc7b18dc59898a234985dbbd
parent6c71013ecb7e2bddbed9f5b95e7aed22c491daa9
block: have drivers use blk_queue_max_discard_sectors()

Some drivers use it now, others just set the limits field manually.
But in preparation for splitting this into a hard and soft limit,
ensure that they all call the proper function for setting the hw
limit for discards.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
12 files changed:
drivers/block/brd.c
drivers/block/drbd/drbd_nl.c
drivers/block/loop.c
drivers/block/nbd.c
drivers/block/nvme-core.c
drivers/block/rbd.c
drivers/block/skd_main.c
drivers/block/zram/zram_drv.c
drivers/md/bcache/super.c
drivers/mmc/card/queue.c
drivers/mtd/mtd_blkdevs.c
drivers/scsi/sd.c