All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
To: Jinpu Wang <jinpu.wang-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: RFC: FMR support in SRP
Date: Fri, 19 Sep 2014 17:14:35 +0200	[thread overview]
Message-ID: <541C485B.60302@acm.org> (raw)
In-Reply-To: <CAMGffEmjzsYsOTnaPWPr4D7TDCbwcoxM8Lr2kDNWCnBOpP5k-A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 09/19/14 17:08, Jinpu Wang wrote:
> Thank you very much for quick reply. I tried you test program with:
>
> ./discontiguous-io -l 4096 -o 1024 -s -w /dev/sdb
>
> The program just wait there, and strace show it hang at read:
>
> munmap(0x7fb074c10000, 24430)           = 0
> brk(0)                                  = 0x1896000
> brk(0x18b8000)                          = 0x18b8000
> open("/dev/sdb", O_RDONLY)              = 3
> ioctl(3, BLKSSZGET, 0x6066e0)           = 0
> fstat(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x7fb074c16000
> read(0,
>
> ib_srp load with cmd_sg_entries=255, target side use ib_srpt from svn
> 1 month ago.
>
> Kernel is 3.14.13
>
> lsscsi
> [0:0:0:0]    disk    ATA      ST3750528AS      CC38  /dev/sda
> [1:0:0:0]    disk    SCST_BIO vol0              310  /dev/sdb
> [1:0:0:1]    disk    SCST_BIO vol1              310  /dev/sdc

Hello Jack,

Did you know that file descriptor 0 corresponds to stdin ? With 
command-line option -w the test program reads data from stdin and sends 
that data to a SCSI device. I think the test program is waiting for you 
to provide input data :-)

Bart.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-09-19 15:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19 13:11 RFC: FMR support in SRP Jinpu Wang
     [not found] ` <CAMGffEkN4OmJVi6UV7PtRYq5q3XZfJVTEaJFqvypx0W8Aq8cRA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-19 14:04   ` Bart Van Assche
     [not found]     ` <541C380B.1000803-HInyCGIudOg@public.gmane.org>
2014-09-19 15:08       ` Jinpu Wang
     [not found]         ` <CAMGffEmjzsYsOTnaPWPr4D7TDCbwcoxM8Lr2kDNWCnBOpP5k-A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-19 15:14           ` Bart Van Assche [this message]
     [not found]             ` <541C485B.60302-HInyCGIudOg@public.gmane.org>
2014-09-19 15:35               ` Jinpu Wang
     [not found]                 ` <CAMGffE=AobYJe_r=0He-U=bH6WLSsKi_Bx-S0YeH_68gE96o7A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-19 16:04                   ` Jinpu Wang
     [not found]                     ` <CAMGffE=BG6JS7C3ZZ_pwUV3AyHDtG8i49RR2PmXZo+ZT18M5XA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-20  6:24                       ` Bart Van Assche
     [not found]                         ` <541D1DBA.7010004-HInyCGIudOg@public.gmane.org>
2014-09-20  8:41                           ` Jack Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=541C485B.60302@acm.org \
    --to=bvanassche-hinycgiudog@public.gmane.org \
    --cc=jinpu.wang-EIkl63zCoXaH+58JC4qpiA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.