Re: [PATCH 3/3] ib_srpt: Convert to use generic active I/O shutdown logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 6, 2011 at 11:46 AM, Nicholas A. Bellinger
<nab@xxxxxxxxxxxxxxx> wrote:
> On Sun, 2011-11-06 at 09:13 +0100, Bart Van Assche wrote:
> > This leaves the possibility open that ch->sess is used by
> > srpt_handle_new_iu() while  transport_deregister_session() is in
> > progress. That's a race condition.
>
> Is there already a way to quiesce incoming I/O for an channel before
> invoking srpt_release_channel()..?  What about srpt_drain_channel()..?

The proper way to stop I/O is to invoke srpt_close_ch() and to wait
for the last WQE event. After that event has been received and after
the CQ has been drained it is guaranteed that no new commands will be
passed by ib_srpt to the LIO core.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux