[SPDK] Re: threads
Walker, Benjamin <benjamin.walker at intel.com>
| Newsgroups | dev.linux.lists.spdk |
|---|---|
| Message-ID | <37B08312E007AE46A00101F43DA919DD011E140588@FMSMSX105.amr.corp.intel.com> |
-----Original Message----- > From: Trevor Kramer <trevordkramer(a)gmail.com> > Sent: Thursday, April 30, 2020 11:50 AM > To: Storage Performance Development Kit <spdk(a)lists.01.org> > Subject: [SPDK] threads > > Is it allowed to connect to a nvme in one thread (spdk_nvme_connect) and use > the controller handle returned in different threads to allocate and use qpairs > (spdk_nvme_ctrlr_alloc_io_qpair)? Or does everything have to be done in a > single thread? I'm seeing intermittent buffer corruption and I'm wondering if this > could be the cause? You are allowed to use a controller handle to create to create qpairs on different threads. The only requirement is that an individual io_qpair may only be used from a single thread - both submission and processing completions. > > Thanks, > > Trevor > _______________________________________________ > SPDK mailing list -- spdk(a)lists.01.org > To unsubscribe send an email to spdk-leave(a)lists.01.org