OSDN Git Service

scsi: implement REQ_OP_ZONE_RESET_ALL
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 1 Aug 2019 17:26:37 +0000 (10:26 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Aug 2019 03:41:29 +0000 (21:41 -0600)
commitd81e9d494354064cd0a99d08401097dd16f335c0
tree63861964166a70fc6698aa77bf65fb0cdc4ed70b
parent6e33dbf280d60db8c1c11dbf99c0bc475946f9c8
scsi: implement REQ_OP_ZONE_RESET_ALL

This patch implements the zone reset all operation for sd_zbc.c. We add
a new boolean parameter for the sd_zbc_setup_reset_cmd() to indicate
REQ_OP_ZONE_RESET_ALL command setup. Along with that we add support in
the completion path for the zone reset all.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c