Re: [Patch] scsi_ioctl: support persistent reserve commands for non-root user.

2015-08-03 Thread jiang . biao2
James Bottomley wrote on 2015/08/04 09:32:17: > On Tue, 2015-08-04 at 09:11 +0800, jiang.bi...@zte.com.cn wrote: > > scsi_ioctl: support persistent reserve commands through ioctl for > > non-root user. > > > > Scsi persistent reserve commands need to be used for non-root user in > > many scenari

[Patch] scsi_ioctl: support persistent reserve commands for non-root user.

2015-08-03 Thread jiang . biao2
scsi_ioctl: support persistent reserve commands through ioctl for non-root user. Scsi persistent reserve commands need to be used for non-root user in many scenarios. EPERM error will be returned by sg_io() when PERSISTENT_RESERVE_OUT or PERSISTENT_RESERVE_IN command is sent through ioctl() for no

[Patch] scsi_ioctl: support persistent reserve commands through ioctl for non-root user.

2015-08-01 Thread jiang . biao2
scsi_ioctl: support persistent reserve commands through ioctl for non-root user. Scsi persistent reserve commands need to be used for non-root user in many scenarios. EPERM error will be returned by sg_io() when PERSISTENT_RESERVE_OUT or PERSISTENT_RESERVE_IN command is sent through ioctl() for no

答复: Re: [Patch] scsi_error: should not get sense for timeout IO in scsi error handler

2015-07-31 Thread jiang . biao2
linux-scsi-ow...@vger.kernel.org wrote on 2015/07/31 21:17:33: > Hannes Reinecke > 发件人: linux-scsi-ow...@vger.kernel.org > > 2015/07/31 21:17 > > 收件人 > > jiang.bi...@zte.com.cn, linux-scsi@vger.kernel.org, jbottom...@odin.com, > > 抄送 > > 主题 > > Re: [Patch] scsi_error: should not get sen

[Patch] qla2xxx: shoud ensure no *io done* after qla2xxx_eh_abort returning SUCCESS to avoid race between *io timeout* and *io done*.

2015-07-31 Thread jiang . biao2
qla2xxx: shoud ensure no *io done* after qla2xxx_eh_abort returning SUCCESS to avoid race between *io timeout* and *io done*. LLDD driver should ensure that there is no *io done* after eh_abort (*qla2xxx_eh_abort*) returning SUCCESS to avoid the race between *io timeout* and *io done*. But qla2xxx

[Patch] scsi_error: should not get sense for timeout IO in scsi error handler

2015-07-31 Thread jiang . biao2
scsi_error: should not get sense for timeout IO in scsi error handler When an IO timeout occurs, the IO will be aborted in scsi_abort_command() and SCSI_EH_ABORT_SCHEDULED will be set. Because of that, the SCSI_EH_CANCEL_CMD will be clear in scsi_eh_scmd_add(). So when scsi error handler starts, i