[Devel] [PATCH 0/8] ploop: Return maintaince mode

Kirill Tkhai ktkhai at virtuozzo.com
Tue May 21 13:35:45 MSK 2019


This patch set enables it for vstorage.

Also, added file /sys/block/ploopXXX/pstate/native_discard,
which shows, whether we should use maintaince-mode based
discard or not.

---

Kirill Tkhai (8):
      Revert "ploop: Remove now unused PLOOP_E_ZERO_INDEX and PLOOP_E_DELTA_ZERO_INDEX branches"
      Revert "ploop: Remove now unused PLOOP_REQ_RELOC_S branches"
      Revert "ploop: Remove now unused PLOOP_REQ_DISCARD branches"
      Revert "ploop: Remove now unused PLOOP_REQ_ZERO branches"
      Revert "ploop: Remove obsolete ioctls"
      Partial revert "ploop: Enable native discard support for kaio engine"
      ploop: Return maintaince mode ioctls again
      ploop: Show whether device supports native discard


 drivers/block/ploop/Makefile     |    2 
 drivers/block/ploop/dev.c        |  950 ++++++++++++++++++++++++++++++++-
 drivers/block/ploop/discard.c    |  124 ++++
 drivers/block/ploop/discard.h    |   15 +
 drivers/block/ploop/events.h     |    5 
 drivers/block/ploop/fmt_ploop1.c |    7 
 drivers/block/ploop/freeblks.c   | 1110 ++++++++++++++++++++++++++++++++++++++
 drivers/block/ploop/freeblks.h   |   58 ++
 drivers/block/ploop/io_kaio.c    |    1 
 drivers/block/ploop/map.c        |   47 +-
 drivers/block/ploop/sysfs.c      |    6 
 include/linux/ploop/ploop.h      |   28 +
 include/linux/ploop/ploop_if.h   |   20 -
 13 files changed, 2327 insertions(+), 46 deletions(-)
 create mode 100644 drivers/block/ploop/discard.c
 create mode 100644 drivers/block/ploop/discard.h
 create mode 100644 drivers/block/ploop/freeblks.c
 create mode 100644 drivers/block/ploop/freeblks.h

--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>


More information about the Devel mailing list