login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
12
Re: [PATCH] ide-scsi: do non-atomic pc->flags testing
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Bartlomiej Zolnierkiewicz <bzolnier@...>
To: <petkovbb@...>
Cc: <linux-kernel@...>, <linux-ide@...>
Subject:
Re: [PATCH] ide-scsi: do non-atomic pc->flags testing
Date: Tuesday, February 12, 2008 - 4:17 pm
On Tuesday 12 February 2008, Borislav Petkov wrote:
quoted text
> commit 272976f0f5754707f9e41da315717a6eb8d9d536 > Author: Borislav Petkov <petkovbb@gmail.com> > Date: Tue Feb 12 16:22:44 2008 +0100 > > ide-scsi: do non-atomic pc->flags testing > > Signed-off-by: Borislav Petkov <petkovbb@gmail.com> > > diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c > index 5ec421c..eb84cdc 100644 > --- a/drivers/scsi/ide-scsi.c > +++ b/drivers/scsi/ide-scsi.c > @@ -319,8 +319,10 @@ static int idescsi_end_request (ide_drive_t *drive, int uptodate, int nrsecs) > pc = opc; > rq = pc->rq; > pc->scsi_cmd->result = (CHECK_CONDITION << 1) | > - ((test_bit(PC_TIMEDOUT, &pc->flags)?DID_TIME_OUT:DID_OK) << 16); > - } else if (test_bit(PC_TIMEDOUT, &pc->flags)) { > + (((pc->flags & PC_TIMEDOUT) ? > + DID_TIME_OUT : > + DID_OK) << 16); > + } else if (pc->flags & PC_TIMEDOUT) {
How's about renaming flag defines to PC_FLAG_* at the same time (like it was done for other ATAPI drivers)? Otherwise looks good. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] ide-scsi: do non-atomic pc->flags testing
, Borislav Petkov
, (Tue Feb 12, 11:25 am)
Re: [PATCH] ide-scsi: do non-atomic pc->flags testing
, Bartlomiej Zolnierkiewicz...
, (Tue Feb 12, 4:17 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.27-rc5
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Trent Piepho
Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code
git
:
linux-netdev
:
Christoph Hellwig
Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2]
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
599 guests
online.
Online users
texastraveltram
kitesurfinggol
fireratedsteel
ez_wpthemes
portlandcarins
posters5suuhwkj
Syndicate