From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

blk_ioctl: address the review suggestion

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/drivers/blk-common.cc b/drivers/blk-common.cc
--- a/drivers/blk-common.cc
+++ b/drivers/blk-common.cc
@@ -18,11 +18,6 @@
 
 TRACEPOINT(trace_blk_ioctl, "dev=%s type=%#x nr=%d size=%d, dir=%d", char*, 
int, int, int, int);
 
-static void no_bio_done(bio* b)
-{
-   delete b;
-}
-
 int
 blk_ioctl(struct device* dev, u_long io_cmd, void* buf)
 {
@@ -41,7 +36,7 @@ blk_ioctl(struct device* dev, u_long io_cmd, void* buf)
             {
                 auto* bio = alloc_bio();
                 bio->bio_dev = dev;
-                bio->bio_done = no_bio_done;
+                bio->bio_done = destroy_bio;
                 bio->bio_cmd = BIO_FLUSH;
 
                 dev->driver->devops->strategy(bio);

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/000000000000d3e1cc061bf9aba2%40google.com.

Reply via email to