Linux sg3_utils sg_map lists stale/dead device nodes

2013-04-21 Thread Mahesh Rajashekhara
Hello, Greetings...! I am the Linux driver engineer for the PMC-Sierra driver team working on aacraid drivers. The Linux aacraid driver is connected with the SCSI upper layer driver modules (sd, sg, ). We are using Linux sg3_utils tool package `sg_map` command to list mapping between sg an

Re: [RFC-v4 9/9] iser-target: Add iSCSI Extensions for RDMA (iSER) target driver

2013-04-21 Thread Or Gerlitz
On 12/04/2013 23:52, Nicholas A. Bellinger wrote: From: Nicholas Bellinger This patch adds support for iSCSI Extensions for RDMA target mode, and includes CQ pooling per isert_device context distributed across multiple active iser target sessions. Cool, feel free to ad my S.O.B here Signed-of

Re: [PATCH V2] scsi: ufs: add support for query requests

2013-04-21 Thread Santosh Y
> + * ufshcd_compose_upiu - form UFS Protocol Information Unit(UPIU) > + * @hba - UFS hba > + * @lrb - pointer to local reference block > + */ > +static int ufshcd_compose_upiu(struct ufs_hba *hba, struct ufshcd_lrb > *lrbp) > +{ > + u32 upiu_flags; > + int ret = 0; > + > + if (!l

sparc ESP SCSI error handling BUG+hang

2013-04-21 Thread Meelis Roos
Hello, I revived my Sun E3000 after its main disk died, reinstalled Debian and after long apuse I am testing linux kernels again on it. In general it works fine but I left the bad disk connected and sometimes it causes ESP SCSI BUG in esp_free_lun_tag. Sometimes it just works. [0.00] P

[PATCH 3/3] scsi_debug: simplify offset calculation for dif_storep

2013-04-21 Thread Akinobu Mita
dif_storep is declared as pointer to unsigned char type. But it is actually used to store vmalloced array of struct sd_dif_tuple. This changes the type of dif_storep to the pointer to struct sd_dif_tuple. It simplifies offset calculation for dif_storep and enables to remove hardcoded size of stru

[PATCH 2/3] scsi_debug: fix NULL pointer dereference with parameters dif=0 dix=1

2013-04-21 Thread Akinobu Mita
The protection info dif_storep is allocated only when parameter dif is not zero. But it will be accessed when reading or writing to the storage installed with parameter dix is not zero. So kernel crashes if scsi_debug module is loaded with parameters dix=1 and dif=0. This fixes it by making dif_

[PATCH 1/3] scsi_debug: fix data integrity support on highmem machine

2013-04-21 Thread Akinobu Mita
kmap_atomic() is now using stack based implementation and doesn't take the KM_type argument anymore. So nesting kmap_atomic() calls must be properly stacked. This fixes nesting kmap_atomic() calls for scsi_sglist and scsi_prot_sglist in prot_verify_write(). This also fixes another issue that inv

[PATCH 0/3] scsi_debug: fix data integrity support

2013-04-21 Thread Akinobu Mita
When I tried testing the data integrity support in scsi_debug on x86_32, I got CONFIG_DEBUG_HIGHMEM warnings and protection errors. This was triggered due to misused kmap_atomic/kunmap_atomic. And then, while I was testing the fix of the above issue with several combination with module parameters