linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block: drbd: drbd_state: Fix typo in comments
@ 2022-06-22 15:52 Jiang Jian
  2022-06-22 16:10 ` James Bottomley
  2022-06-22 20:57 ` Christoph Böhmwalder
  0 siblings, 2 replies; 3+ messages in thread
From: Jiang Jian @ 2022-06-22 15:52 UTC (permalink / raw)
  To: axboe
  Cc: philipp.reisner, lars.ellenberg, christoph.boehmwalder, drbd-dev,
	linux-block, linux-kernel, Jiang Jian

Replace 'is' with 'it'

file: drivers/block/drbd/drbd_state.c
line: 1900

* But is is still not save to dreference ldev here, since

changed to:

* But it is still not save to dreference ldev here, since

Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com>
---
 drivers/block/drbd/drbd_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
index 3f7bf9f2d874..99927c44f0c3 100644
--- a/drivers/block/drbd/drbd_state.c
+++ b/drivers/block/drbd/drbd_state.c
@@ -1897,7 +1897,7 @@ static void after_state_ch(struct drbd_device *device, union drbd_state os,
 		int was_io_error = 0;
 		/* corresponding get_ldev was in _drbd_set_state, to serialize
 		 * our cleanup here with the transition to D_DISKLESS.
-		 * But is is still not save to dreference ldev here, since
+		 * But it is still not save to dreference ldev here, since
 		 * we might come from an failed Attach before ldev was set. */
 		if (device->ldev) {
 			rcu_read_lock();
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: drbd: drbd_state: Fix typo in comments
  2022-06-22 15:52 [PATCH] block: drbd: drbd_state: Fix typo in comments Jiang Jian
@ 2022-06-22 16:10 ` James Bottomley
  2022-06-22 20:57 ` Christoph Böhmwalder
  1 sibling, 0 replies; 3+ messages in thread
From: James Bottomley @ 2022-06-22 16:10 UTC (permalink / raw)
  To: Jiang Jian, axboe
  Cc: philipp.reisner, lars.ellenberg, christoph.boehmwalder, drbd-dev,
	linux-block, linux-kernel

On Wed, 2022-06-22 at 23:52 +0800, Jiang Jian wrote:
> Replace 'is' with 'it'
> 
> file: drivers/block/drbd/drbd_state.c
> line: 1900
> 
> * But is is still not save to dreference ldev here, since
> 
> changed to:
> 
> * But it is still not save to dreference ldev here, since

I honestly don't think spelling and grammar updates to comments provide
much value.  However, there's no value at all if it's still two
spelling errors in that one line after the proposed patch ...

James



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: drbd: drbd_state: Fix typo in comments
  2022-06-22 15:52 [PATCH] block: drbd: drbd_state: Fix typo in comments Jiang Jian
  2022-06-22 16:10 ` James Bottomley
@ 2022-06-22 20:57 ` Christoph Böhmwalder
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Böhmwalder @ 2022-06-22 20:57 UTC (permalink / raw)
  To: Jiang Jian
  Cc: philipp.reisner, lars.ellenberg, drbd-dev, linux-block,
	linux-kernel, axboe

Am 22.06.22 um 17:52 schrieb Jiang Jian:
> Replace 'is' with 'it'
> 
> file: drivers/block/drbd/drbd_state.c
> line: 1900
> 
> * But is is still not save to dreference ldev here, since
> 
> changed to:
> 
> * But it is still not save to dreference ldev here, since
> 
> Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com>
> ---
>  drivers/block/drbd/drbd_state.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
> index 3f7bf9f2d874..99927c44f0c3 100644
> --- a/drivers/block/drbd/drbd_state.c
> +++ b/drivers/block/drbd/drbd_state.c
> @@ -1897,7 +1897,7 @@ static void after_state_ch(struct drbd_device *device, union drbd_state os,
>  		int was_io_error = 0;
>  		/* corresponding get_ldev was in _drbd_set_state, to serialize
>  		 * our cleanup here with the transition to D_DISKLESS.
> -		 * But is is still not save to dreference ldev here, since
> +		 * But it is still not save to dreference ldev here, since
>  		 * we might come from an failed Attach before ldev was set. */
>  		if (device->ldev) {
>  			rcu_read_lock();

I agree with James here, I do not think this provides much value.

In fact, the *same* line you are changing contains two more spelling
mistakes ("save" and "dreference").

My opinion is that trivial patches like this are fine as a starting
point for new contributors, which is why I acked the previous patch from
you guys. However, if we start getting two of these every week it just
adds more maintenance burden than it's worth.

So thanks for the contribution, but it's a NAK from me.

-- 
Christoph Böhmwalder
LINBIT | Keeping the Digital World Running
DRBD HA —  Disaster Recovery — Software defined Storage

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-22 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22 15:52 [PATCH] block: drbd: drbd_state: Fix typo in comments Jiang Jian
2022-06-22 16:10 ` James Bottomley
2022-06-22 20:57 ` Christoph Böhmwalder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).