iscsi-scst: fix a subtle race inside the EXTRACHECKs facility

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7592 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-11-01 04:43:58 +00:00
parent acb805d070
commit 495bd54e09
+8 -1
View File
@@ -404,9 +404,16 @@ struct iscsi_cmnd {
*/
unsigned int data_out_in_data_receiving:1;
unsigned int force_release_done:1;
#ifdef CONFIG_SCST_EXTRACHECKS
unsigned int on_rx_digest_list:1;
unsigned int release_called:1;
/*
* This flag might be cleared from SCST thread after/during RX digest
* calculation in parallel with clearing release_called from the
* read thread, so it must be modifiable inependently.
*/
unsigned long on_rx_digest_list:1 __aligned(sizeof(long));
#endif
/*