|
@@ -317,8 +317,8 @@ static void do_region(int op, int op_flags, unsigned region,
|
|
|
else if (op == REQ_OP_WRITE_SAME)
|
|
|
special_cmd_max_sectors = q->limits.max_write_same_sectors;
|
|
|
if ((op == REQ_OP_DISCARD || op == REQ_OP_WRITE_ZEROES ||
|
|
|
- op == REQ_OP_WRITE_SAME) &&
|
|
|
- special_cmd_max_sectors == 0) {
|
|
|
+ op == REQ_OP_WRITE_SAME) && special_cmd_max_sectors == 0) {
|
|
|
+ atomic_inc(&io->count);
|
|
|
dec_count(io, region, -EOPNOTSUPP);
|
|
|
return;
|
|
|
}
|