File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ static int ublk_dev_param_zoned_apply(struct ublk_device *ub)
251
251
const struct ublk_param_zoned * p = & ub -> params .zoned ;
252
252
253
253
disk_set_zoned (ub -> ub_disk , BLK_ZONED_HM );
254
+ blk_queue_flag_set (QUEUE_FLAG_ZONE_RESETALL , ub -> ub_disk -> queue );
254
255
blk_queue_required_elevator_features (ub -> ub_disk -> queue ,
255
256
ELEVATOR_F_ZBD_SEQ_WRITE );
256
257
disk_set_max_active_zones (ub -> ub_disk , p -> max_active_zones );
@@ -393,6 +394,9 @@ static blk_status_t ublk_setup_iod_zoned(struct ublk_queue *ubq,
393
394
case REQ_OP_ZONE_APPEND :
394
395
ublk_op = UBLK_IO_OP_ZONE_APPEND ;
395
396
break ;
397
+ case REQ_OP_ZONE_RESET_ALL :
398
+ ublk_op = UBLK_IO_OP_ZONE_RESET_ALL ;
399
+ break ;
396
400
case REQ_OP_DRV_IN :
397
401
ublk_op = pdu -> operation ;
398
402
switch (ublk_op ) {
@@ -404,9 +408,8 @@ static blk_status_t ublk_setup_iod_zoned(struct ublk_queue *ubq,
404
408
default :
405
409
return BLK_STS_IOERR ;
406
410
}
407
- case REQ_OP_ZONE_RESET_ALL :
408
411
case REQ_OP_DRV_OUT :
409
- /* We do not support reset_all and drv_out */
412
+ /* We do not support drv_out */
410
413
return BLK_STS_NOTSUPP ;
411
414
default :
412
415
return BLK_STS_IOERR ;
Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ struct ublksrv_ctrl_dev_info {
245
245
#define UBLK_IO_OP_ZONE_CLOSE 11
246
246
#define UBLK_IO_OP_ZONE_FINISH 12
247
247
#define UBLK_IO_OP_ZONE_APPEND 13
248
+ #define UBLK_IO_OP_ZONE_RESET_ALL 14
248
249
#define UBLK_IO_OP_ZONE_RESET 15
249
250
/*
250
251
* Construct a zone report. The report request is carried in `struct
You can’t perform that action at this time.
0 commit comments