configfs: accessing item hierarchy during rmdir(2)
authorJoel Becker <joel.becker@oracle.com>
Sat, 7 Oct 2006 00:33:23 +0000 (17:33 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 11 Jul 2007 00:11:01 +0000 (17:11 -0700)
commit299894cc9001b09e3e9685f2709b49e7e1092ccc
tree2a2e9bb69d2393bf620a34daea17e52ed9f9e5d7
parent6d748924b753d63a57dad130fdf11f64c27ff54b
configfs: accessing item hierarchy during rmdir(2)

Add a notification callback, ops->disconnect_notify(). It has the same
prototype as ->drop_item(), but it will be called just before the item
linkage is broken. This way, configfs users who want to do work while
the object is still in the heirarchy have a chance.

Client drivers will still need to config_item_put() in their
->drop_item(), if they implement it.  They need do nothing in
->disconnect_notify().  They don't have to provide it if they don't
care.  But someone who wants to be notified before ci_parent is set to
NULL can now be notified.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Documentation/filesystems/configfs/configfs.txt
fs/configfs/dir.c
include/linux/configfs.h