mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
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:
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user