]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r314027: Do not blindly free completed ATIOs/INOTs on invalidation.
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 6 Mar 2017 06:19:02 +0000 (06:19 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 6 Mar 2017 06:19:02 +0000 (06:19 +0000)
commit28e07c08be338c281c2503b0fb2072f7c05ec99c
treebb84eaaf7bd62962b31ae20238f7223ad92b212c
parentccf65bd44c710236a218609df7682fc99b49337c
MFC r314027: Do not blindly free completed ATIOs/INOTs on invalidation.

When LUN is disabled, SIM starts returning queued ATIOs/INOTs.  But at the
same time there can be some ATIOs/INOTs still carrying real new requests.
If we free those, SIM may leak some resources, forever expecting for any
response from us.  So try to be careful, separating ATIOs/INOTs carrying
requests which still must be processed, from ATIOs/INOTs completed with
errors which can be freed.

git-svn-id: svn://svn.freebsd.org/base/stable/10@314727 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cam/ctl/scsi_ctl.c