diff mbox series

block: mark zone-mgmt bios with REQ_SYNC

Message ID 20191219061423.3775-1-chaitanya.kulkarni@wdc.com (mailing list archive)
State New, archived
Headers show
Series block: mark zone-mgmt bios with REQ_SYNC | expand

Commit Message

Chaitanya Kulkarni Dec. 19, 2019, 6:14 a.m. UTC
This patch marks the zone-mgmt bios with REQ_SYNC flag.

Suggested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
---
 block/blk-zoned.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Damien Le Moal Dec. 19, 2019, 6:57 a.m. UTC | #1
On 2019/12/19 15:14, Chaitanya Kulkarni wrote:
> This patch marks the zone-mgmt bios with REQ_SYNC flag.
> 
> Suggested-by: Damien Le Moal <damien.lemoal@wdc.com>
> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
> ---
>  block/blk-zoned.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/blk-zoned.c b/block/blk-zoned.c
> index d00fcfd71dfe..05741c6f618b 100644
> --- a/block/blk-zoned.c
> +++ b/block/blk-zoned.c
> @@ -198,7 +198,7 @@ int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op,
>  			break;
>  		}
>  
> -		bio->bi_opf = op;
> +		bio->bi_opf = op | REQ_SYNC;
>  		bio->bi_iter.bi_sector = sector;
>  		sector += zone_sectors;

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Bob Liu Dec. 19, 2019, 8:27 a.m. UTC | #2
On 12/19/19 2:14 PM, Chaitanya Kulkarni wrote:
> This patch marks the zone-mgmt bios with REQ_SYNC flag.
> 
> Suggested-by: Damien Le Moal <damien.lemoal@wdc.com>
> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
> ---

Reviewed-by: Bob Liu <bob.liu@oracle.com>

>  block/blk-zoned.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/blk-zoned.c b/block/blk-zoned.c
> index d00fcfd71dfe..05741c6f618b 100644
> --- a/block/blk-zoned.c
> +++ b/block/blk-zoned.c
> @@ -198,7 +198,7 @@ int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op,
>  			break;
>  		}
>  
> -		bio->bi_opf = op;
> +		bio->bi_opf = op | REQ_SYNC;
>  		bio->bi_iter.bi_sector = sector;
>  		sector += zone_sectors;
>  
>
Jens Axboe Dec. 19, 2019, 12:47 p.m. UTC | #3
On 12/18/19 11:14 PM, Chaitanya Kulkarni wrote:
> This patch marks the zone-mgmt bios with REQ_SYNC flag.

This needs a much better commit message, you're not telling me
anything I can't see by reading the patch itself. A good commit
message contains the reason for the patch, there's no justification
right now.
Chaitanya Kulkarni Jan. 8, 2020, 10:38 p.m. UTC | #4
Jens,

I sent out a new version, can you please take a look and
let me know if you are happy with the commit log ?

On 12/19/2019 04:47 AM, Jens Axboe wrote:
> On 12/18/19 11:14 PM, Chaitanya Kulkarni wrote:
>> >This patch marks the zone-mgmt bios with REQ_SYNC flag.
> This needs a much better commit message, you're not telling me
> anything I can't see by reading the patch itself. A good commit
> message contains the reason for the patch, there's no justification
> right now.
>
> -- Jens Axboe

-ck
diff mbox series

Patch

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index d00fcfd71dfe..05741c6f618b 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -198,7 +198,7 @@  int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op,
 			break;
 		}
 
-		bio->bi_opf = op;
+		bio->bi_opf = op | REQ_SYNC;
 		bio->bi_iter.bi_sector = sector;
 		sector += zone_sectors;