Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1711421 > unrolled thread
| Started by | Tom Talpey <ttalpey@microsoft.com> |
|---|---|
| First post | 2017-08-14 22:30 +0200 |
| Last post | 2017-08-15 01:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
RE: [[PATCH v1] 14/37] [CIFS] SMBD: Post a SMBD data transfer message with page payload Tom Talpey <ttalpey@microsoft.com> - 2017-08-14 22:30 +0200
RE: [[PATCH v1] 14/37] [CIFS] SMBD: Post a SMBD data transfer message with page payload Long Li <longli@microsoft.com> - 2017-08-15 01:00 +0200
| From | Tom Talpey <ttalpey@microsoft.com> |
|---|---|
| Date | 2017-08-14 22:30 +0200 |
| Subject | RE: [[PATCH v1] 14/37] [CIFS] SMBD: Post a SMBD data transfer message with page payload |
| Message-ID | <ueu9Q-gF-25@gated-at.bofh.it> |
> -----Original Message-----
> From: linux-cifs-owner@vger.kernel.org [mailto:linux-cifs-
> owner@vger.kernel.org] On Behalf Of Long Li
> Sent: Wednesday, August 2, 2017 4:10 PM
> To: Steve French <sfrench@samba.org>; linux-cifs@vger.kernel.org; samba-
> technical@lists.samba.org; linux-kernel@vger.kernel.org
> Cc: Long Li <longli@microsoft.com>
> Subject: [[PATCH v1] 14/37] [CIFS] SMBD: Post a SMBD data transfer message
> with page payload
>
> /*
> + * Send a page
> + * page: the page to send
> + * offset: offset in the page to send
> + * size: length in the page to send
> + * remaining_data_length: remaining data to send in this payload
> + */
> +static int cifs_rdma_post_send_page(struct cifs_rdma_info *info, struct page
> *page,
> + unsigned long offset, size_t size, int remaining_data_length)
> +{
>...
> + wait_event(info->wait_send_queue, atomic_read(&info->send_credits) >
> 0);
This is an uninterruptible wait, correct? What's to guarantee the event will
ever fire? Also, if the count is zero, there should be a check that an SMB Direct
credit request is outstanding. If not, it's wasteful to sleep for the keepalive timer
to do so.
Tom.
[toc] | [next] | [standalone]
| From | Long Li <longli@microsoft.com> |
|---|---|
| Date | 2017-08-15 01:00 +0200 |
| Message-ID | <uewuZ-1zq-5@gated-at.bofh.it> |
| In reply to | #1711421 |
> -----Original Message-----
> From: Tom Talpey
> Sent: Monday, August 14, 2017 1:23 PM
> To: Long Li <longli@microsoft.com>; Steve French <sfrench@samba.org>;
> linux-cifs@vger.kernel.org; samba-technical@lists.samba.org; linux-
> kernel@vger.kernel.org
> Subject: RE: [[PATCH v1] 14/37] [CIFS] SMBD: Post a SMBD data transfer
> message with page payload
>
> > -----Original Message-----
> > From: linux-cifs-owner@vger.kernel.org [mailto:linux-cifs-
> > owner@vger.kernel.org] On Behalf Of Long Li
> > Sent: Wednesday, August 2, 2017 4:10 PM
> > To: Steve French <sfrench@samba.org>; linux-cifs@vger.kernel.org;
> > samba- technical@lists.samba.org; linux-kernel@vger.kernel.org
> > Cc: Long Li <longli@microsoft.com>
> > Subject: [[PATCH v1] 14/37] [CIFS] SMBD: Post a SMBD data transfer
> > message with page payload
> >
> > /*
> > + * Send a page
> > + * page: the page to send
> > + * offset: offset in the page to send
> > + * size: length in the page to send
> > + * remaining_data_length: remaining data to send in this payload */
> > +static int cifs_rdma_post_send_page(struct cifs_rdma_info *info,
> > +struct page
> > *page,
> > + unsigned long offset, size_t size, int
> > +remaining_data_length) {
> >...
> > + wait_event(info->wait_send_queue,
> > + atomic_read(&info->send_credits) >
> > 0);
>
> This is an uninterruptible wait, correct? What's to guarantee the event will
> ever fire? Also, if the count is zero, there should be a check that an SMB
> Direct credit request is outstanding. If not, it's wasteful to sleep for the
> keepalive timer to do so.
Will fix it.
>
> Tom.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web