X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Ftarget%2Ftarget_core_fabric_ops.h;h=0256825f923dbd8d5e1824cb45c4af5d1ae3e197;hb=04cf399640b7acfa9abe2eb7900cd934db8af697;hp=126c675f4f14e5b41afd30694615b84d5eedbcbc;hpb=f1f8935a5c38a2c61e86a42bc971a2539eef2211;p=mv-sheeva.git diff --git a/include/target/target_core_fabric_ops.h b/include/target/target_core_fabric_ops.h index 126c675f4f1..0256825f923 100644 --- a/include/target/target_core_fabric_ops.h +++ b/include/target/target_core_fabric_ops.h @@ -46,9 +46,16 @@ struct target_core_fabric_ops { int (*new_cmd_map)(struct se_cmd *); /* * Optional to release struct se_cmd and fabric dependent allocated - * I/O descriptor in transport_cmd_check_stop() + * I/O descriptor in transport_cmd_check_stop(). + * + * Returning 1 will signal a descriptor has been released. + * Returning 0 will signal a descriptor has not been released. */ - void (*check_stop_free)(struct se_cmd *); + int (*check_stop_free)(struct se_cmd *); + /* + * Optional check for active I/O shutdown + */ + int (*check_release_cmd)(struct se_cmd *); void (*release_cmd)(struct se_cmd *); /* * Called with spin_lock_bh(struct se_portal_group->session_lock held.