Skip to content

Add deleting state check for target messages

Mike Anderson dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dm: Add dm_deleting accesor functiondrivers/md/dm.c include/linux/device-mapper.h+6 -00 replies
2/3dm: Add accessor dm_table_md_deletingdrivers/md/dm-table.c include/linux/device-mapper.h+7 -00 replies
3/3dm: Add deleting check to target_messagedrivers/md/dm-ioctl.c+6 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Add deleting state check for target messages

This patch adds a accessor function that allows determining if a mapped_device is in the deleting state and then adds this check to the target_message function. The result of this change would be that all targets would not be allowed to process messages post a mapped device entering the deleting state.

As previously described in the email at the archive url provided below the target_message ioctl can result in new work / activities being started post the mapped device entering states that new target work could cause issues.

http://permalink.gmane.org/gmane.linux.kernel.device-mapper.devel/10486

This patch depends on the previous patch that added dm_suspended_check due to proximity of changes in common files.

---

Mike Anderson (3):
dm: Add dm_deleting accesor function
dm: Add accessor dm_table_md_deleting
dm: Add deleting check to target_message

 drivers/md/dm-ioctl.c         |    6 ++++++
 drivers/md/dm-table.c         |    6 ++++++
 drivers/md/dm.c               |    5 +++++
 include/linux/device-mapper.h |    2 ++
 4 files changed, 19 insertions(+), 0 deletions(-)

--
-andmike

Michael Anderson <[email protected]>