diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2016-08-16 09:59:35 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-08-16 17:16:51 +0200 |
commit | 7afafc8a44bf0ab841b17d450b02aedb3a138985 (patch) | |
tree | a879b43681ee39a3f3ace3aeacb81f30c96ca00d /kernel | |
parent | nvme: Prevent controller state invalid transition (diff) | |
download | linux-7afafc8a44bf0ab841b17d450b02aedb3a138985.tar.xz linux-7afafc8a44bf0ab841b17d450b02aedb3a138985.zip |
block: Fix secure erase
Commit 288dab8a35a0 ("block: add a separate operation type for secure
erase") split REQ_OP_SECURE_ERASE from REQ_OP_DISCARD without considering
all the places REQ_OP_DISCARD was being used to mean either. Fix those.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: 288dab8a35a0 ("block: add a separate operation type for secure erase")
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/blktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 7598e6ca817a..dbafc5df03f3 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c @@ -223,7 +223,7 @@ static void __blk_add_trace(struct blk_trace *bt, sector_t sector, int bytes, what |= MASK_TC_BIT(op_flags, META); what |= MASK_TC_BIT(op_flags, PREFLUSH); what |= MASK_TC_BIT(op_flags, FUA); - if (op == REQ_OP_DISCARD) + if (op == REQ_OP_DISCARD || op == REQ_OP_SECURE_ERASE) what |= BLK_TC_ACT(BLK_TC_DISCARD); if (op == REQ_OP_FLUSH) what |= BLK_TC_ACT(BLK_TC_FLUSH); |