search for: max_cmd

Displaying 6 results from an estimated 6 matches for "max_cmd".

Did you mean: ma_cmd
2020 Sep 24
0
[PATCH 3/8] vhost scsi: alloc cmds per vq instead of session
...UPAGES 2048 > #define VHOST_SCSI_PREALLOC_PROT_SGLS 2048 > @@ -189,6 +188,9 @@ struct vhost_scsi_virtqueue { > * Writers must also take dev mutex and flush under it. > */ > int inflight_idx; > + struct vhost_scsi_cmd *scsi_cmds; > + struct sbitmap scsi_tags; > + int max_cmds; > }; > > struct vhost_scsi { > @@ -324,7 +326,9 @@ static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) > { > struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, > struct vhost_scsi_cmd, tvc_se_cmd); > - struct se_session *se_sess = tv_cmd->tvc_nexus-&...
2012 Oct 12
9
[PATCH] Fits: tool to parse stream
...+ "RENAME", + "LINK", + "UNLINK", + "RMDIR", + "SET_XATTR", + "REMOVE_XATTR", + "WRITE", + "CLONE", + "TRUNCATE", + "CHMOD", + "CHOWN", + "UTIMES", + "END" +}; +#define MAX_CMDS (sizeof(cmd_names) / sizeof(char *)) + +#define TYPE_UNDEF 0 +#define TYPE_INT 1 +#define TYPE_STRING 2 +#define TYPE_BINARY 3 +#define TYPE_TIME 4 +#define TYPE_HEX 5 +#define TYPE_OCTAL 6 +#define TYPE_LEN_ONLY 7 + +struct attr_types { + const char *name; + int type; +} attrs[] = { + { "UN...
2012 Sep 27
1
CAM Target Layer and Linux (continued)
...:3): 0 CCBs oustanding (0 allocated, 0 freed) (ctl9:isp1:0:0:3): 0 CTIOs outstanding (0 sent, 0 returned CTL Frontend information end zpool status is showing no errors. P.S.: The machine is 8 core 2.0Ghz Xeon E5-2650 with 196G of RAM Other things to note are that I'm running with "hw.mfi.max_cmds=254" Also my zpool is on GELI hw encrypted disks: 24 JBOD/RAID0 drives on mfi, each encrypted with GELI, and arranged in 3 raidz2 vdevs of 8 drives. And the machine also acts as a fairly loaded NFS server.
2023 Feb 23
5
[PATCH 0/5] vhost-scsi: Fix management operation hangs
The following patches were made over Linus tree and also apply over mst tree's vhost branch. The patches fix an issue where management operations like LUN mapping/unmapping and device addition hang for 30 seconds or up to N minutes depending on the device. The problem is that we use a global mutex to protect the list of tpgs but we hold that mutex during those management operations. So if you
2023 Mar 21
8
[PATCH v2 0/7] vhost-scsi: Fix crashes and management op hangs
The following patches were made over Linus tree. The patches fix 3 issues: 1. If a user performs LIO LUN unmapping before the endpoint has been cleared then we can end up trying to free a bogus tmf struct if the TMF is still exucuting when we do the unmap. 2. If vhost_scsi_setup_vq_cmds fails we can leave the tpg->vhost_scsi pointer set and we can end up trying to access a freed struct. 3.
2023 Mar 28
12
[PATCH v6 00/11] vhost: multiple worker support
The following patches were built over linux-next which contains various vhost patches in mst's tree and the vhost_task patchset in Christian Brauner's tree: git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git kernel.user_worker branch: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=kernel.user_worker The latter patchset handles the review comment