block: add a separate operation type for secure erase
Instead of overloading the discard support with the REQ_SECURE flag. Use the opportunity to rename the queue flag as well, and remove the dead checks for this flag in the RAID 1 and RAID 10 drivers that don't claim support for secure erase. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- block/blk-core.c 17 additions, 10 deletionsblock/blk-core.c
- block/blk-lib.c 14 additions, 11 deletionsblock/blk-lib.c
- block/blk-merge.c 2 additions, 4 deletionsblock/blk-merge.c
- drivers/block/xen-blkback/xenbus.c 1 addition, 1 deletiondrivers/block/xen-blkback/xenbus.c
- drivers/block/xen-blkfront.c 9 additions, 5 deletionsdrivers/block/xen-blkfront.c
- drivers/md/raid1.c 1 addition, 2 deletionsdrivers/md/raid1.c
- drivers/md/raid10.c 2 additions, 3 deletionsdrivers/md/raid10.c
- drivers/mmc/card/block.c 6 additions, 4 deletionsdrivers/mmc/card/block.c
- drivers/mmc/card/queue.c 1 addition, 1 deletiondrivers/mmc/card/queue.c
- include/linux/blk_types.h 2 additions, 3 deletionsinclude/linux/blk_types.h
- include/linux/blkdev.h 4 additions, 19 deletionsinclude/linux/blkdev.h
- kernel/trace/blktrace.c 4 additions, 2 deletionskernel/trace/blktrace.c
Please register or sign in to comment