Skip to content

RFC Low water mark disk events

Hannes Reinecke linux-fsdevel linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scsi,block: enable disk event forwardingblock/genhd.c drivers/scsi/scsi_lib.c drivers/scsi/sd.c +1 more+34 -100 replies
2/4block,scsi: Low water mark disk eventblock/genhd.c drivers/scsi/scsi_lib.c drivers/scsi/sd.c +2 more+28 -50 replies
3/4dm-thin: enable low water mark disk eventdrivers/md/dm-thin.c drivers/md/dm.c drivers/md/dm.h+31 -10 replies
4/4brd: thin provisioning supportdrivers/block/brd.c+53 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] Low water mark disk events

Hi all,

here is a patchset to implement 'low water mark' disk events. This event corresponds to a TP Soft Threshold Reached UA for SCSI or a 'low watermark' event for dm-thin.
It utilises the existing 'disk event' infrastructure from the blocklayer to send out the events via udev.
And it also cleans up the ambiguous MEDIA_CHANGE event handling from libata, where AN (asynchronous notification) events would be signalled via SCSI events, and polled MEDIA_CHANGE events would be signalled via disk events.
And I've added thin provisioning support to brd, too, to have a simple testbed for the new low water mark disk event.

As usual, comments and reviews are welcome.

Hannes Reinecke (4):
scsi,block: enable disk event forwarding
block,scsi: Low water mark disk event
dm-thin: enable low water mark disk event
brd: thin provisioning support

 block/genhd.c              |  3 +++
 drivers/block/brd.c        | 53 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/md/dm-thin.c       |  2 ++
 drivers/md/dm.c            | 26 +++++++++++++++++++++++
 drivers/md/dm.h            |  3 ++-
 drivers/scsi/scsi_lib.c    | 25 +++++++++-------------
 drivers/scsi/sd.c          | 44 ++++++++++++++++++++++++++++++++++++++
 drivers/scsi/sd.h          |  1 +
 include/linux/genhd.h      |  1 +
 include/scsi/scsi_driver.h |  2 ++
 10 files changed, 144 insertions(+), 16 deletions(-)
Signature · 1 line
1.8.5.6