Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/blk-cbt.c b/block/blk-cbt.c
index 269709c7589b..68c7f71ec3a0 100644
--- a/block/blk-cbt.c
+++ b/block/blk-cbt.c
@@ -17,6 +17,7 @@
#include
#include
#include
+#inclu
The per-cpu allocator guarantees the returned memory is going to be
zeroed out so it's redundant to do our own zeroing when initialising
cbt. Simply remove this code.
Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git
Using the macro makes the code more explicit and somewhat easier to
comprehend.
Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/block/blk-cbt.c b/block/blk-cbt.c
index 68c7f71ec3a0..967533a2a7a3 100644
--- a/block
Instead of duplicating CAP_SYS_ADMIN check for every block-cbt ioctl
apart from BLKCBTGET simply factor out the check in the beginning of
blk_cbt_ioctl.
Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 17 +++--
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/block
Sasha, please review the patchset.
--
Best regards,
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
On 27.01.2023 12:34, Nikolay Borisov wrote:
The per-cpu allocator guarantees the returned memory is going to be
zeroed out so it's redundant to do our own zeroing when initialising
cbt. Simply
On 27.01.23 13:34, Nikolay Borisov wrote:
The per-cpu allocator guarantees the returned memory is going to be
zeroed out so it's redundant to do our own zeroing when initialising
cbt. Simply remove this code.
Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 11 +--
1 file changed
Hi,
On 27.01.23 13:34, Nikolay Borisov wrote:
Instead of duplicating CAP_SYS_ADMIN check for every block-cbt ioctl
apart from BLKCBTGET simply factor out the check in the beginning of
blk_cbt_ioctl.
Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 17 +++--
1 file changed, 3
On 27.01.23 13:34, Nikolay Borisov wrote:
Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/blk-cbt.c b/block/blk-cbt.c
index 269709c7589b..68c7f71ec3a0 100644
--- a/block/blk-cbt.c
+++ b/block/blk-cbt.c
@@ -17,6 +17
On 27.01.23 13:34, Nikolay Borisov wrote:
Using the macro makes the code more explicit and somewhat easier to
comprehend.
Signed-off-by: Nikolay Borisov
---
block/blk-cbt.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/block/blk-cbt.c b/block/blk-cbt.c
index