From: "Martin K. Petersen" <mkp@kernel.org>
To: Wang Yingjie <x-professor@outlook.com>
Cc: "Martin K . Petersen" <mkp@kernel.org>,
Jens Axboe <axboe@kernel.dk>,
Bart Van Assche <bvanassche@acm.org>,
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
"James E . J . Bottomley"
<James.Bottomley@HansenPartnership.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] scsi: handle out-of-range SG_SET_TIMEOUT values
Date: Fri, 23 Oct 2026 23:04:02 -0400 [thread overview]
Message-ID: <yq133tv94ve.fsf@mail.kernel.org> (raw)
In-Reply-To: <20261022025508.294713-1-x-professor@outlook.com>
> SG_SET_TIMEOUT accepts a signed int in USER_HZ units. The sg character
> device rejects negative values and limits positive values so the
> converted timeout fits its destination field. The block SCSI and BSG
> paths instead pass the value to clock_t_to_jiffies(), which accepts an
> unsigned long, and store the result in an unsigned int.
Applied to 7.4/scsi-staging, thanks!
--
Martin K. Petersen
next prev parent reply other threads:[~2026-10-24 3:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-17 8:45 [PATCH] scsi: reject negative SG_SET_TIMEOUT values Wang Yingjie
2026-10-19 21:34 ` Bart Van Assche
2026-10-21 18:18 ` [PATCH v2] scsi: handle out-of-range " Wang Yingjie
2026-10-21 20:29 ` Bart Van Assche
2026-10-22 2:55 ` [PATCH v3] " Wang Yingjie
2026-10-22 3:24 ` Bart Van Assche
2026-10-24 3:04 ` Martin K. Petersen [this message]
2026-10-29 2:03 ` Martin K. Petersen (Oracle)
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=yq133tv94ve.fsf@mail.kernel.org \
--to=mkp@kernel.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=x-professor@outlook.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.