race condition between target life cycle and login
Yifeng Xu <[email protected]> Sun, 5 Jul 2015 10:57:29 +0800
| Newsgroups | org.kernel.vger.stgt |
|---|---|
| Message-ID | <CAD-e953UY+3o-jYgJegO-Mhva4nYtGUjPsph0Rv515jfKWHABQ@mail.gmail.com> |
Hi, I think there is a race condition between target recreating and iscsi_tcp_conn_login_complete(), later only checks tid, but during login procedure, a target may be destroyed and recreated, and it is another different target at all. I think there should be a generation number saved both in connection and target, the iscsi_tcp_conn_login_complete() should check it. Regards, Skype Xu