Patch "virtio-blk: remove unneeded "likely" statements" has been added to the 5.14-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 29 lines · On Mon, Oct 18, 2021 at 12:02:30PM +0200, [email protected] wrote:
This is a note to let you know that I've just added the patch titled
virtio-blk: remove unneeded "likely" statements
to the 5.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
virtio-blk-remove-unneeded-likely-statements.patch
and it can be found in the queue-5.14 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6105d1fe6f4c24ce8c13e2e6568b16b76e04983dMon Sep 17 00:00:00 2001From: Max Gurtovoy <[email protected]>
Date: Sun, 5 Sep 2021 11:57:17 +0300
Subject: virtio-blk: remove unneeded "likely" statementsFrom: Max Gurtovoy <[email protected]>
commit
6105d1fe6f4c24ce8c13e2e6568b16b76e04983dupstream.Usually we use "likely/unlikely" to optimize the fast path. Remove redundant "likely/unlikely" statements in the control path to simplify the code and make it easier to read.
Quoted 8 lines
Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Max Gurtovoy <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>Reviewed-by Chaitanya Kulkarni <[email protected]>Reviewed-by Christoph Hellwig <[email protected]>Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
It's harmless but doesn't seem appropriate for stable.
Quoted 29 lines
--- drivers/block/virtio_blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/block/virtio_blk.c +2
-2@@ -765,7 +765,7 @@ static int virtblk_probe(struct virtio_d goto out_free_vblk;/* Default queue sizing is to fill the ring. */ -if (likely (!virtblk_queue_depth)) { +if (!virtblk_queue_depth) { queue_depth = vblk->vqs[0 ].vq->num_free;/* ... but without indirect descs, we use 2 descs per req */ if (!virtio_has_feature (vdev,VIRTIO_RING_F_INDIRECT_DESC ))@@ -839,7 +839,7 @@ static int virtblk_probe(struct virtio_delse blk_size =queue_logical_block_size (q); -if (unlikely (blk_size <SECTOR_SIZE || blk_size >PAGE_SIZE )) { +if (blk_size <SECTOR_SIZE || blk_size >PAGE_SIZE ) {dev_err (&vdev->dev,"block size is changed unexpectedly, now is %u\n" , blk_size);Patches currently in stable-queue which might be from [email protected] are
queue-5.14/virtio-blk-remove-unneeded-likely-statements.patch
Quoted 39 lines · Michael S. Tsirkin
Quoted 29 lines · On Mon, Oct 18, 2021 at 12:02:30PM +0200, [email protected] wrote:
This is a note to let you know that I've just added the patch titled
virtio-blk: remove unneeded "likely" statements
to the 5.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
virtio-blk-remove-unneeded-likely-statements.patch
and it can be found in the queue-5.14 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6105d1fe6f4c24ce8c13e2e6568b16b76e04983dMon Sep 17 00:00:00 2001From: Max Gurtovoy <[email protected]>
Date: Sun, 5 Sep 2021 11:57:17 +0300
Subject: virtio-blk: remove unneeded "likely" statementsFrom: Max Gurtovoy <[email protected]>
commit
6105d1fe6f4c24ce8c13e2e6568b16b76e04983dupstream.Usually we use "likely/unlikely" to optimize the fast path. Remove redundant "likely/unlikely" statements in the control path to simplify the code and make it easier to read.
Quoted 8 lines
Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Max Gurtovoy <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>Reviewed-by Chaitanya Kulkarni <[email protected]>Reviewed-by Christoph Hellwig <[email protected]>Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 1 line
It's harmless but doesn't seem appropriate for stable.
Oh, I guess it's been picked because the next patch that was picked depends on it. OK then, sorry about the noise.
Quoted 29 lines
Quoted 29 lines
--- drivers/block/virtio_blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/block/virtio_blk.c +2
-2@@ -765,7 +765,7 @@ static int virtblk_probe(struct virtio_d goto out_free_vblk;/* Default queue sizing is to fill the ring. */ -if (likely (!virtblk_queue_depth)) { +if (!virtblk_queue_depth) { queue_depth = vblk->vqs[0 ].vq->num_free;/* ... but without indirect descs, we use 2 descs per req */ if (!virtio_has_feature (vdev,VIRTIO_RING_F_INDIRECT_DESC ))@@ -839,7 +839,7 @@ static int virtblk_probe(struct virtio_delse blk_size =queue_logical_block_size (q); -if (unlikely (blk_size <SECTOR_SIZE || blk_size >PAGE_SIZE )) { +if (blk_size <SECTOR_SIZE || blk_size >PAGE_SIZE ) {dev_err (&vdev->dev,"block size is changed unexpectedly, now is %u\n" , blk_size);Patches currently in stable-queue which might be from [email protected] are
queue-5.14/virtio-blk-remove-unneeded-likely-statements.patch
Greg KH
maintainerQuoted 40 lines · Michael S. Tsirkin
Quoted 39 lines · Michael S. Tsirkin
Quoted 37 lines · On Mon, Oct 18, 2021 at 12:02:30PM +0200, [email protected] wrote:
This is a note to let you know that I've just added the patch titled
virtio-blk: remove unneeded "likely" statements
to the 5.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
virtio-blk-remove-unneeded-likely-statements.patch
and it can be found in the queue-5.14 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6105d1fe6f4c24ce8c13e2e6568b16b76e04983dMon Sep 17 00:00:00 2001From: Max Gurtovoy <[email protected]>
Date: Sun, 5 Sep 2021 11:57:17 +0300
Subject: virtio-blk: remove unneeded "likely" statementsFrom: Max Gurtovoy <[email protected]>
commit
6105d1fe6f4c24ce8c13e2e6568b16b76e04983dupstream.Usually we use "likely/unlikely" to optimize the fast path. Remove redundant "likely/unlikely" statements in the control path to simplify the code and make it easier to read.
Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Max Gurtovoy <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>Reviewed-by Chaitanya Kulkarni <[email protected]>Reviewed-by Christoph Hellwig <[email protected]>Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 4 lines
Quoted 1 line
It's harmless but doesn't seem appropriate for stable.
Oh, I guess it's been picked because the next patch that was picked depends on it. OK then, sorry about the noise.
Yeah, that's why I grabbed it :)
thanks,
greg k-h