From: Douglas Gilbert <dgilbert@interlog.com>
To: linux-scsi@vger.kernel.org
Cc: martin.petersen@oracle.com, jejb@linux.vnet.ibm.com, hare@suse.de
Subject: [PATCH v18 66/83] sg: split sg_setup_req
Date: Tue, 27 Apr 2021 17:57:16 -0400 [thread overview]
Message-ID: <20210427215733.417746-68-dgilbert@interlog.com> (raw)
In-Reply-To: <20210427215733.417746-1-dgilbert@interlog.com>
The sg_setup_req() function was getting too long. It has been
split into a helper (sg_setup_req_ws_helper() ) and a function of
the same original name.
Rename all pointers to struct request from rq to rqq. This is to
better distinguish them from the other rq_* variables. Add
READ_ONCE/WRITE_ONCE macros to all accesses to srp->rqq .
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
---
drivers/scsi/sg.c | 331 +++++++++++++++++++++++-----------------------
1 file changed, 162 insertions(+), 169 deletions(-)
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index ca6af752b23d..dcb9afe722c2 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -343,7 +343,7 @@ struct sg_mrq_hold { /* for passing context between mrq functions */
};
/* tasklet or soft irq callback */
-static void sg_rq_end_io(struct request *rq, blk_status_t status);
+static void sg_rq_end_io(struct request *rqq, blk_status_t status);
/* Declarations of other static functions used before they are defined */
static int sg_proc_init(void);
static void sg_dfs_init(void);
@@ -3667,6 +3667,7 @@ sg_abort_req(struct sg_fd *sfp, struct sg_request *srp)
{
int res = 0;
enum sg_rq_state rq_st;
+ struct request *rqq;
if (test_and_set_bit(SG_FRQ_ABORTING, srp->frq_bm)) {
SG_LOG(1, sfp, "%s: already aborting req pack_id/tag=%d/%d\n",
@@ -3691,14 +3692,11 @@ sg_abort_req(struct sg_fd *sfp, struct sg_request *srp)
break; /* nothing to do here, return 0 */
case SG_RQ_INFLIGHT: /* only attempt abort if inflight */
srp->rq_result |= (DRIVER_SOFT << 24);
- {
- struct request *rqq = READ_ONCE(srp->rqq);
-
- if (likely(rqq)) {
- SG_LOG(5, sfp, "%s: -->blk_abort_request srp=0x%pK\n",
- __func__, srp);
- blk_abort_request(rqq);
- }
+ rqq = READ_ONCE(srp->rqq);
+ if (likely(rqq)) {
+ SG_LOG(5, sfp, "%s: -->blk_abort_request srp=0x%pK\n",
+ __func__, srp);
+ blk_abort_request(rqq);
}
break;
default:
@@ -4116,6 +4114,7 @@ sg_set_reserved_sz(struct sg_fd *sfp, int want_rsv_sz)
o_srp->frq_bm));
*rapp = n_srp;
sg_rq_chg_state_force_ulck(n_srp, SG_RQ_INACTIVE);
+ /* no bump of sfp->inactives since replacement */
xa_unlock_irqrestore(xafp, iflags);
SG_LOG(6, sfp, "%s: new rsv srp=0x%pK ++\n",
__func__, n_srp);
@@ -4225,7 +4224,7 @@ sg_take_snap(struct sg_fd *sfp, bool clear_first)
}
#if IS_ENABLED(SG_PROC_OR_DEBUG_FS)
if (true) { /* for some declarations */
- int n, prevlen, bp_len;
+ int prevlen, bp_len;
char *bp;
prevlen = strlen(snapped_buf);
@@ -5333,8 +5332,8 @@ sg_rq_end_io(struct request *rqq, blk_status_t status)
sfp->ffd_bm));
if (unlikely(!sg_result_is_good(rq_result) && slen > 0 &&
test_bit(SG_FDEV_LOG_SENSE, sdp->fdev_bm))) {
- if ((rq_result & 0xff) == SAM_STAT_CHECK_CONDITION ||
- (rq_result & 0xff) == SAM_STAT_COMMAND_TERMINATED)
+ if ((rq_result & 0xfe) == SAM_STAT_CHECK_CONDITION ||
+ (rq_result & 0xfe) == SAM_STAT_COMMAND_TERMINATED)
__scsi_print_sense(sdp->device, __func__, scsi_rp->sense, slen);
}
if (unlikely(slen > 0)) {
@@ -5825,8 +5824,7 @@ sg_start_req(struct sg_request *srp, struct sg_comm_wr_t *cwrp, int dxfer_dir)
* blk_get_request(BLK_MQ_REQ_NOWAIT) yields EAGAIN (aka EWOULDBLOCK).
*/
rqq = blk_get_request(q, (r0w ? REQ_OP_SCSI_OUT : REQ_OP_SCSI_IN),
- (test_bit(SG_FFD_MORE_ASYNC, sfp->ffd_bm) ?
- BLK_MQ_REQ_NOWAIT : 0));
+ (test_bit(SG_FFD_MORE_ASYNC, sfp->ffd_bm) ? BLK_MQ_REQ_NOWAIT : 0));
if (IS_ERR(rqq)) {
res = PTR_ERR(rqq);
goto err_pre_blk_get;
@@ -5971,7 +5969,7 @@ sg_finish_scsi_blk_rq(struct sg_request *srp)
}
/* Expect blk_put_request(rqq) already called in sg_rq_end_io() */
- if (rqq) { /* blk_get_request() may have failed */
+ if (rqq) { /* blk_get_request() may have failed */
WRITE_ONCE(srp->rqq, NULL);
if (scsi_req(rqq))
scsi_req_free_cmd(scsi_req(rqq));
@@ -6440,172 +6438,145 @@ sg_build_reserve(struct sg_fd *sfp, int buflen)
} while (true);
}
+static struct sg_request *
+sg_setup_req_ws_helper(struct sg_fd *fp, int rsv_idx)
+{
+ int res;
+ struct sg_request *r_srp;
+ enum sg_rq_state rs_sr_st;
+ struct sg_fd *rs_sfp = sg_fd_share_ptr(fp);
+
+ if (unlikely(!rs_sfp))
+ return ERR_PTR(-EPROTO);
+ /*
+ * There may be contention with another potential write-side trying
+ * to pair with this read-side. The loser will receive an
+ * EADDRINUSE errno. The winner advances read-side's rq_state:
+ * SG_RQ_SHR_SWAP --> SG_RQ_SHR_IN_WS
+ */
+ if (rsv_idx >= 0)
+ r_srp = rs_sfp->rsv_arr[rsv_idx];
+ else
+ r_srp = sg_get_probable_read_side(rs_sfp);
+ if (unlikely(!r_srp))
+ return ERR_PTR(-ENOSTR);
+
+ rs_sr_st = atomic_read(&r_srp->rq_st);
+ switch (rs_sr_st) {
+ case SG_RQ_SHR_SWAP:
+ break;
+ case SG_RQ_AWAIT_RCV:
+ case SG_RQ_INFLIGHT:
+ case SG_RQ_BUSY:
+ return ERR_PTR(-EBUSY); /* too early for write-side req */
+ case SG_RQ_INACTIVE:
+ SG_LOG(1, fp, "%s: write-side finds read-side inactive\n",
+ __func__);
+ return ERR_PTR(-EADDRNOTAVAIL);
+ case SG_RQ_SHR_IN_WS:
+ SG_LOG(1, fp, "%s: write-side find read-side shr_in_ws\n",
+ __func__);
+ return ERR_PTR(-EADDRINUSE);
+ }
+ res = sg_rq_chg_state(r_srp, rs_sr_st, SG_RQ_SHR_IN_WS);
+ if (unlikely(res))
+ return ERR_PTR(-EADDRINUSE);
+ return r_srp;
+}
+
/*
* Setup an active request (soon to carry a SCSI command) to the current file
- * descriptor by creating a new one or re-using a request from the free
- * list (fl). If successful returns a valid pointer to a sg_request object
- * which is in the SG_RQ_BUSY state. On failure returns a negated errno value
- * twisted by ERR_PTR() macro. Note that once a file share is established,
- * the read-side's reserve request can only be used in a request share.
+ * descriptor by creating a new one or re-using a request marked inactive.
+ * If successful returns a valid pointer to a sg_request object which is in
+ * the SG_RQ_BUSY state. On failure returns a negated errno value twisted by
+ * ERR_PTR() macro. Note that once a file share is established, the read-side
+ * side's reserve request can only be used in a request share.
*/
static struct sg_request *
sg_setup_req(struct sg_comm_wr_t *cwrp, enum sg_shr_var sh_var, int dxfr_len)
{
- bool act_empty = false;
bool allow_rsv = true; /* see note above */
bool mk_new_srp = true;
bool new_rsv_srp = false;
+ bool no_reqs = false;
bool ws_rq = false;
+ bool some_inactive = false;
bool try_harder = false;
bool second = false;
- bool has_inactive = false;
bool is_rsv;
int ra_idx = 0;
- int res, l_used_idx;
+ int l_used_idx;
u32 sum_dlen;
unsigned long idx, s_idx, end_idx, iflags;
enum sg_rq_state sr_st;
- enum sg_rq_state rs_st = SG_RQ_INACTIVE;
struct sg_fd *fp = cwrp->sfp;
- struct sg_request *r_srp = NULL; /* returned value won't be NULL */
- struct sg_request *low_srp = NULL;
+ struct sg_request *r_srp; /* returned value won't be NULL */
struct sg_request *rs_rsv_srp = NULL;
- struct sg_fd *rs_sfp = NULL;
struct xarray *xafp = &fp->srp_arr;
- __maybe_unused const char *cp = NULL;
+ __maybe_unused const char *cp = "";
__maybe_unused char b[64];
- b[0] = '\0';
switch (sh_var) {
- case SG_SHR_NONE:
- case SG_SHR_WS_NOT_SRQ:
- break;
case SG_SHR_RS_RQ:
- if (test_bit(SG_FFD_RESHARE, fp->ffd_bm))
- ra_idx = 0;
- else
- ra_idx = sg_get_idx_available(fp);
+ cp = "rs_rq";
+ ra_idx = (test_bit(SG_FFD_RESHARE, fp->ffd_bm)) ? 0 : sg_get_idx_available(fp);
if (ra_idx < 0) {
new_rsv_srp = true;
- cp = "m_rq";
goto good_fini;
}
r_srp = fp->rsv_arr[ra_idx];
sr_st = atomic_read(&r_srp->rq_st);
if (sr_st == SG_RQ_INACTIVE) {
- res = sg_rq_chg_state(r_srp, sr_st, SG_RQ_BUSY);
- if (likely(res == 0)) {
+ int res = sg_rq_chg_state(r_srp, sr_st, SG_RQ_BUSY);
+
+ if (unlikely(res)) {
+ r_srp = NULL;
+ } else {
r_srp->sh_srp = NULL;
mk_new_srp = false;
- cp = "rs_rq";
- goto good_fini;
}
+ } else {
+ SG_LOG(1, fp, "%s: no reserve request available\n", __func__);
+ r_srp = ERR_PTR(-EFBIG);
}
- /* Did not find the reserve request available */
- r_srp = ERR_PTR(-EFBIG);
- break;
- case SG_SHR_RS_NOT_SRQ:
- allow_rsv = false;
- break;
+ if (IS_ERR(r_srp))
+ goto err_out;
+ if (mk_new_srp)
+ new_rsv_srp = true;
+ goto good_fini;
case SG_SHR_WS_RQ:
- rs_sfp = sg_fd_share_ptr(fp);
- if (unlikely(!rs_sfp)) {
- r_srp = ERR_PTR(-EPROTO);
- break;
- }
- /*
- * There may be contention with another potential write-side trying
- * to pair with this read-side. The loser will receive an
- * EADDRINUSE errno. The winner advances read-side's rq_state:
- * SG_RQ_SHR_SWAP --> SG_RQ_SHR_IN_WS
- */
- if (cwrp->rsv_idx >= 0)
- rs_rsv_srp = rs_sfp->rsv_arr[cwrp->rsv_idx];
- else
- rs_rsv_srp = sg_get_probable_read_side(rs_sfp);
- if (!rs_rsv_srp) {
- r_srp = ERR_PTR(-ENOSTR);
- break;
- }
- rs_st = atomic_read(&rs_rsv_srp->rq_st);
- switch (rs_st) {
- case SG_RQ_AWAIT_RCV:
- if (!sg_result_is_good(rs_rsv_srp->rq_result)) {
- /* read-side done but error occurred */
- r_srp = ERR_PTR(-ENOSTR);
- break;
- }
- ws_rq = true;
- break;
- case SG_RQ_SHR_SWAP:
- ws_rq = true;
- if (unlikely(rs_st == SG_RQ_AWAIT_RCV))
- break;
- res = sg_rq_chg_state(rs_rsv_srp, rs_st, SG_RQ_SHR_IN_WS);
- if (unlikely(res))
- r_srp = ERR_PTR(-EADDRINUSE);
- break;
- case SG_RQ_INFLIGHT:
- case SG_RQ_BUSY:
- SG_LOG(6, fp, "%s: write-side finds read-side: %s\n", __func__,
- sg_rq_st_str(rs_st, true));
- r_srp = ERR_PTR(-EBUSY);
- break;
- case SG_RQ_INACTIVE:
- r_srp = ERR_PTR(-EADDRNOTAVAIL);
- break;
- case SG_RQ_SHR_IN_WS:
- default:
- r_srp = ERR_PTR(-EADDRINUSE);
- break;
- }
- break;
- }
- if (IS_ERR(r_srp)) {
- if (PTR_ERR(r_srp) == -EBUSY)
+ cp = "rs_rq";
+ rs_rsv_srp = sg_setup_req_ws_helper(fp, cwrp->rsv_idx);
+ if (IS_ERR(rs_rsv_srp)) {
+ r_srp = rs_rsv_srp;
goto err_out;
-#if IS_ENABLED(SG_LOG_ACTIVE)
- if (sh_var == SG_SHR_RS_RQ) {
- snprintf(b, sizeof(b), "SG_SHR_RS_RQ --> sr_st=%s",
- sg_rq_st_str(sr_st, false));
- } else if (sh_var == SG_SHR_WS_RQ && rs_sfp) {
- char c[32];
- const char *ccp;
-
- if (rs_rsv_srp)
- ccp = sg_get_rsv_str(rs_rsv_srp, "[", "]",
- sizeof(c), c);
- else
- ccp = "? ";
- snprintf(b, sizeof(b), "SHR_WS_RQ --> rs_sr%s_st=%s",
- ccp, sg_rq_st_str(rs_st, false));
- } else {
- snprintf(b, sizeof(b), "sh_var=%s",
- sg_shr_str(sh_var, false));
}
-#endif
- goto err_out;
- }
- cp = "";
-
- if (ws_rq) { /* write-side dlen may be <= read-side's dlen */
+ /* write-side dlen may be <= read-side's dlen */
if (unlikely(dxfr_len > rs_rsv_srp->sgatp->dlen)) {
- SG_LOG(4, fp, "%s: write-side dlen [%d] > read-side dlen\n",
+ SG_LOG(1, fp, "%s: bad, write-side dlen [%d] > read-side's\n",
__func__, dxfr_len);
r_srp = ERR_PTR(-E2BIG);
goto err_out;
}
+ ws_rq = true;
dxfr_len = 0; /* any srp for write-side will do, pick smallest */
+ break;
+ case SG_SHR_RS_NOT_SRQ:
+ allow_rsv = false;
+ break;
+ default:
+ break;
}
start_again:
- cp = "";
if (xa_empty(xafp)) {
- act_empty = true;
+ no_reqs = true;
mk_new_srp = true;
} else if (atomic_read(&fp->inactives) <= 0) {
mk_new_srp = true;
} else if (likely(!try_harder) && dxfr_len < SG_DEF_SECTOR_SZ) {
+ struct sg_request *low_srp = NULL;
+
l_used_idx = READ_ONCE(fp->low_used_idx);
s_idx = (l_used_idx < 0) ? 0 : l_used_idx;
if (l_used_idx >= 0 && xa_get_mark(xafp, s_idx, SG_XA_RQ_INACTIVE)) {
@@ -6622,53 +6593,75 @@ sg_setup_req(struct sg_comm_wr_t *cwrp, enum sg_shr_var sh_var, int dxfr_len)
}
}
xa_for_each_marked(xafp, idx, r_srp, SG_XA_RQ_INACTIVE) {
- has_inactive = true;
- if (!allow_rsv &&
- test_bit(SG_FRQ_RESERVED, r_srp->frq_bm))
- continue;
- if (!low_srp && dxfr_len < SG_DEF_SECTOR_SZ) {
- low_srp = r_srp;
- break;
+ if (allow_rsv || !test_bit(SG_FRQ_RESERVED, r_srp->frq_bm)) {
+ if (r_srp->sgat_h.buflen <= SG_DEF_SECTOR_SZ) {
+ if (sg_rq_chg_state(r_srp, SG_RQ_INACTIVE, SG_RQ_BUSY))
+ continue;
+ mk_new_srp = false;
+ break;
+ } else if (!low_srp) {
+ low_srp = r_srp;
+ }
}
}
- /* If dxfr_len is small, use lowest inactive request */
- if (low_srp) {
+ if (mk_new_srp && low_srp) { /* no candidate yet */
+ /* take non-NULL low_srp, irrespective of r_srp->sgat_h.buflen size */
r_srp = low_srp;
- if (unlikely(sg_rq_chg_state(r_srp, SG_RQ_INACTIVE, SG_RQ_BUSY)))
- goto start_again; /* gone to another thread */
- atomic_dec(&fp->inactives);
- cp = "lowest inactive in srp_arr";
- mk_new_srp = false;
+ if (sg_rq_chg_state(r_srp, SG_RQ_INACTIVE, SG_RQ_BUSY) == 0) {
+ mk_new_srp = false;
+ atomic_dec(&fp->inactives);
+ }
}
} else {
+ cp = "larger from srp_arr";
l_used_idx = READ_ONCE(fp->low_used_idx);
s_idx = (l_used_idx < 0) ? 0 : l_used_idx;
idx = s_idx;
end_idx = ULONG_MAX;
+
+ if (allow_rsv) {
second_time:
- for (r_srp = xa_find(xafp, &idx, end_idx, SG_XA_RQ_INACTIVE);
- r_srp;
- r_srp = xa_find_after(xafp, &idx, end_idx, SG_XA_RQ_INACTIVE)) {
- if (!allow_rsv &&
- test_bit(SG_FRQ_RESERVED, r_srp->frq_bm))
- continue;
- if (r_srp->sgat_h.buflen >= dxfr_len) {
- if (sg_rq_chg_state(r_srp, SG_RQ_INACTIVE, SG_RQ_BUSY))
- continue;
- atomic_dec(&fp->inactives);
- WRITE_ONCE(fp->low_used_idx, idx + 1);
- cp = "near front of srp_arr";
- mk_new_srp = false;
- break;
+ for (r_srp = xa_find(xafp, &idx, end_idx, SG_XA_RQ_INACTIVE);
+ r_srp;
+ r_srp = xa_find_after(xafp, &idx, end_idx, SG_XA_RQ_INACTIVE)) {
+ if (dxfr_len <= r_srp->sgat_h.buflen) {
+ if (sg_rq_chg_state(r_srp, SG_RQ_INACTIVE, SG_RQ_BUSY))
+ continue;
+ atomic_dec(&fp->inactives);
+ WRITE_ONCE(fp->low_used_idx, idx + 1);
+ mk_new_srp = false;
+ break;
+ }
+ }
+ if (!r_srp && !second && s_idx > 0) {
+ end_idx = s_idx - 1;
+ s_idx = 0;
+ idx = s_idx;
+ second = true;
+ goto second_time;
+ }
+ } else {
+second_time_2:
+ for (r_srp = xa_find(xafp, &idx, end_idx, SG_XA_RQ_INACTIVE);
+ r_srp;
+ r_srp = xa_find_after(xafp, &idx, end_idx, SG_XA_RQ_INACTIVE)) {
+ if (dxfr_len <= r_srp->sgat_h.buflen &&
+ !test_bit(SG_FRQ_RESERVED, r_srp->frq_bm)) {
+ if (sg_rq_chg_state(r_srp, SG_RQ_INACTIVE, SG_RQ_BUSY))
+ continue;
+ atomic_dec(&fp->inactives);
+ WRITE_ONCE(fp->low_used_idx, idx + 1);
+ mk_new_srp = false;
+ break;
+ }
+ }
+ if (!r_srp && !second && s_idx > 0) {
+ end_idx = s_idx - 1;
+ s_idx = 0;
+ idx = s_idx;
+ second = true;
+ goto second_time_2;
}
- }
- /* If not found so far, need to wrap around and search [0 ... start_idx) */
- if (!r_srp && !second && s_idx > 0) {
- end_idx = s_idx - 1;
- s_idx = 0;
- idx = s_idx;
- second = true;
- goto second_time;
}
}
have_existing:
@@ -6713,10 +6706,10 @@ sg_setup_req(struct sg_comm_wr_t *cwrp, enum sg_shr_var sh_var, int dxfr_len)
}
if (IS_ERR(r_srp)) /* NULL is _not_ an ERR here */
goto err_out;
- r_srp = sg_mk_srp_sgat(fp, act_empty, dxfr_len);
+ r_srp = sg_mk_srp_sgat(fp, no_reqs, dxfr_len);
if (IS_ERR(r_srp)) {
if (!try_harder && dxfr_len < SG_DEF_SECTOR_SZ &&
- has_inactive) {
+ some_inactive) {
try_harder = true;
goto start_again;
}
@@ -6777,7 +6770,7 @@ sg_setup_req(struct sg_comm_wr_t *cwrp, enum sg_shr_var sh_var, int dxfr_len)
if (err == EBUSY)
SG_LOG(4, fp, "%s: EBUSY (as ptr err)\n", __func__);
else
- SG_LOG(1, fp, "%s: %s err=%d\n", __func__, b, err);
+ SG_LOG(1, fp, "%s: err=%d\n", __func__, err);
} else {
SG_LOG(4, fp, "%s: %s %sr_srp=0x%pK\n", __func__, cp,
sg_get_rsv_str_lck(r_srp, "[", "] ", sizeof(b), b),
@@ -6911,9 +6904,9 @@ sg_add_sfp(struct sg_device *sdp, struct file *filp)
}
srp->rq_idx = idx;
srp->parentfp = sfp;
+ __set_bit(SG_FRQ_RESERVED, srp->frq_bm);
sg_rq_chg_state_force_ulck(srp, SG_RQ_INACTIVE);
atomic_inc(&sfp->inactives);
- __set_bit(SG_FRQ_RESERVED, srp->frq_bm);
xa_unlock_irqrestore(xafp, iflags);
}
if (!reduced) {
--
2.25.1
next prev parent reply other threads:[~2021-04-27 21:59 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-27 21:56 [PATCH v18 00/83] sg: add v4 interface, request sharing Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 00/45] sg: add v4 interface Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 01/83] sg: move functions around Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 02/83] sg: remove typedefs, type+formatting cleanup Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 03/83] sg: sg_log and is_enabled Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 04/83] sg: rework sg_poll(), minor changes Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 05/83] sg: bitops in sg_device Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 06/83] sg: make open count an atomic Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 07/83] sg: move header to uapi section Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 08/83] sg: speed sg_poll and sg_get_num_waiting Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 09/83] sg: sg_allow_if_err_recovery and renames Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 10/83] sg: improve naming Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 11/83] sg: change rwlock to spinlock Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 12/83] sg: ioctl handling Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 13/83] sg: split sg_read Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 14/83] sg: sg_common_write add structure for arguments Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 15/83] sg: rework sg_vma_fault Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 16/83] sg: rework sg_mmap Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 17/83] sg: replace sg_allow_access Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 18/83] sg: rework scatter gather handling Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 19/83] sg: introduce request state machine Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 20/83] sg: sg_find_srp_by_id Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 21/83] sg: sg_fill_request_element Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 22/83] sg: printk change %p to %pK Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 23/83] sg: xarray for fds in device Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 24/83] sg: xarray for reqs in fd Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 25/83] sg: replace rq array with xarray Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 26/83] sg: sense buffer rework Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 27/83] sg: add sg v4 interface support Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 28/83] sg: rework debug info Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 29/83] sg: add 8 byte SCSI LUN to sg_scsi_id Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 30/83] sg: expand sg_comm_wr_t Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 31/83] sg: add sg_iosubmit_v3 and sg_ioreceive_v3 ioctls Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 32/83] sg: add some __must_hold macros Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 33/83] sg: move procfs objects to avoid forward decls Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 34/83] sg: protect multiple receivers Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 35/83] sg: first debugfs support Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 36/83] sg: rework mmap support Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 37/83] sg: defang allow_dio Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 38/83] sg: warn v3 write system call users Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 39/83] sg: add mmap_sz tracking Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 40/83] sg: remove rcv_done request state Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 41/83] sg: track lowest inactive and await indexes Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 42/83] sg: remove unit attention check for device changed Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 43/83] sg: no_dxfer: move to/from kernel buffers Douglas Gilbert
2021-04-28 7:07 ` Hannes Reinecke
2021-04-27 21:56 ` [PATCH v18 44/83] sg: add blk_poll support Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 45/83] sg: bump version to 4.0.12 Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 46/83] sg: add sg_ioabort ioctl Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 47/83] sg: add sg_set_get_extended ioctl Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 48/83] sg: sgat_elem_sz and sum_fd_dlens Douglas Gilbert
2021-04-27 21:56 ` [PATCH v18 49/83] sg: tag and more_async Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 50/83] sg: add fd sharing , change, unshare Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 51/83] sg: add shared requests Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 52/83] sg: add multiple request support Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 53/83] sg: rename some mrq variables Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 54/83] sg: unlikely likely Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 55/83] sg: mrq abort Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 56/83] sg: reduce atomic operations Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 57/83] sg: add excl_wait flag Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 58/83] sg: tweak sg_find_sfp_by_fd() Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 59/83] sg: add snap_dev flag and snapped in debugfs Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 60/83] sg: compress usercontext to uc Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 61/83] sg: optionally output sg_request.frq_bm flags Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 62/83] sg: work on sg_mrq_sanity() Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 63/83] sg: shared variable blocking Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 64/83] sg: device timestamp Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 65/83] sg: condition met is not an error Douglas Gilbert
2021-04-27 21:57 ` Douglas Gilbert [this message]
2021-04-27 21:57 ` [PATCH v18 67/83] sg: finish after read-side request Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 68/83] sg: keep share and dout offset flags Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 69/83] sg: add dlen to sg_comm_wr_t Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 70/83] sg: make use of struct sg_mrq_hold Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 71/83] sg: add mmap IO option for mrq metadata Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 72/83] sg: add eventfd support Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 73/83] sg: table of error number explanations Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 74/83] sg: add ordered write flag Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 75/83] sg: expand source line length to 100 characters Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 76/83] sg: add no_attach_msg parameter Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 77/83] sg: add SGV4_FLAG_REC_ORDER Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 78/83] sg: max to read for mrq sg_ioreceive Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 79/83] sg: mrq: if uniform svb then re-use bio_s Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 80/83] sg: expand bvec usage; " Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 81/83] sg: blk_poll/hipri work for mrq Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 82/83] sg: pollable and non-pollable requests Douglas Gilbert
2021-04-27 21:57 ` [PATCH v18 83/83] sg: bump version to 4.0.47 Douglas Gilbert
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=20210427215733.417746-68-dgilbert@interlog.com \
--to=dgilbert@interlog.com \
--cc=hare@suse.de \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox