From: Bart Van Assche Date: Wed, 17 May 2023 17:42:20 +0000 (-0700) Subject: block: Simplify blk_req_needs_zone_write_lock() X-Git-Tag: v6.6.7~2487^2~212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f51644ccff1e4bf159e86da3d9695a1a33ca231;p=platform%2Fkernel%2Flinux-starfive.git block: Simplify blk_req_needs_zone_write_lock() Remove the blk_rq_is_passthrough() check because it is redundant: blk_req_needs_zone_write_lock() also calls bdev_op_is_zoned_write() and the latter function returns false for pass-through requests. Reviewed-by: Christoph Hellwig Reviewed-by: Damien Le Moal Reviewed-by: Hannes Reinecke Reviewed-by: Johannes Thumshirn Cc: Ming Lei Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20230517174230.897144-3-bvanassche@acm.org Signed-off-by: Jens Axboe --- diff --git a/block/blk-zoned.c b/block/blk-zoned.c index fce9082..835d9e9 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -57,9 +57,6 @@ EXPORT_SYMBOL_GPL(blk_zone_cond_str); */ bool blk_req_needs_zone_write_lock(struct request *rq) { - if (blk_rq_is_passthrough(rq)) - return false; - if (!rq->q->disk->seq_zones_wlock) return false;