Jaesoo Lee
unread,Apr 9, 2019, 5:36:42 PM4/9/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Douglas Gilbert, Jens Axboe, Lee Duncan, Chris Leech, James E.J. Bottomley, Martin K. Petersen, linux...@vger.kernel.org, open-...@googlegroups.com, linux...@vger.kernel.org
Hi,
Thanks for the comments.
I tried to run sg_write_same over sg device and I am seeing the same problem.
The result is as follows:
0. Kernel configs
Version: 5.1-rc1
Boot parameter: dm_mod.use_blk_mq=Y scsi_mod.use_blk_mq=Y
1. Normal state
: (As expected) The command succeeded
$ sg_write_same --lba=100 --xferlen=512 /dev/sg5
$
2. Immediately after bringing down the iSCSI interface at the target
: (As expected) Failed with DID_TRANSPORT_DISRUPTED after a few seconds
$ sg_write_same --lba=100 --xferlen=512 /dev/sg5
Write same: transport: Host_status=0x0e [DID_TRANSPORT_DISRUPTED]
Driver_status=0x00 [DRIVER_OK, SUGGEST_OK]
Write same(10) command failed
3. Immediately after the DID_TRANSPORT_DISRUPTED error
: (BUG) The command succeeded after a few seconds
$ sg_write_same --lba=100 --xferlen=512 /dev/sg5
$
: Kernel logs
Apr 8 18:28:03 init21-16 kernel: session1: session recovery timed out
after 10 secs
Apr 8 18:28:03 init21-16 kernel: sd 8:0:0:5: rejecting I/O to offline device
4. Issued IO again
: (As expected) The command failed
$ sg_write_same --lba=100 --xferlen=512 /dev/sg5
Write same: pass through os error: No such device or address
Write same(10) command failed
Let me upload my fix for this and please give me some comments on that.
Thanks,
Jaesoo Lee.
---------- Forwarded message ---------
From: Douglas Gilbert <
dgil...@interlog.com>
Date: Wed, Apr 3, 2019 at 2:06 PM
Subject: Re: [bug report][scsi blk_mq] data corruption due to a bug in
SCSI LLD error handling
To: Jaesoo Lee <
ja...@purestorage.com>, Jens Axboe <
ax...@kernel.dk>,
Lee Duncan <
ldu...@suse.com>, Chris Leech <
cle...@redhat.com>, James
E.J. Bottomley <
je...@linux.vnet.ibm.com>, Martin K. Petersen
<
martin....@oracle.com>
Cc: <
linux...@vger.kernel.org>, <
open-...@googlegroups.com>,
<
linux...@vger.kernel.org>